Constructor and Description |
---|
ImmediateFuture()
Creates a Future that returns null immediately
|
ImmediateFuture(T value)
Creates a Future that returns the supplied value immediately
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public ImmediateFuture()
public ImmediateFuture(T value)
value
- the value to returnpublic boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<T>
Copyright © 2003–2019 Ignite Realtime. All rights reserved.