public class StubbedFuture
Adapter of the Future interface always returning a fixed value immediately.
Constructor and description |
---|
StubbedFuture
(T value) Constructor taking the value to be returned. |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
cancel(boolean mayInterruptIfRunning) |
|
T |
get() |
|
T |
get(long timeout, java.util.concurrent.TimeUnit unit) |
|
boolean |
isCancelled() |
|
boolean |
isDone() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
ReadyAPI core SDK 3.10.0