public interface GridPlainFuture<R>
| Modifier and Type | Method and Description |
|---|---|
<T> GridPlainFuture<T> |
chain(GridPlainClosure<GridPlainFuture<R>,T> cb)
Creates a future that will be completed after this future is completed.
|
R |
get()
Synchronously waits for completion and returns result.
|
R |
get(long timeout,
TimeUnit unit)
Synchronously waits for completion and returns result.
|
boolean |
isDone()
Checks if future is done.
|
void |
listenAsync(GridPlainInClosure<GridPlainFuture<R>>... lsnrs)
Register new listeners for notification when future completes.
|
void |
stopListenAsync(GridPlainInClosure<GridPlainFuture<R>>... lsnrs)
Removes listeners registered before.
|
R get() throws IgniteCheckedException
IgniteCheckedException - In case of error.R get(long timeout, TimeUnit unit) throws IgniteCheckedException
timeout - Timeout interval to wait future completes.unit - Timeout interval unit to wait future completes.IgniteCheckedException - In case of error.IgniteFutureTimeoutCheckedException - If timed out before future finishes.boolean isDone()
void listenAsync(GridPlainInClosure<GridPlainFuture<R>>... lsnrs)
lsnrs - Listeners to be registered.void stopListenAsync(GridPlainInClosure<GridPlainFuture<R>>... lsnrs)
lsnrs - Listeners to be removed.<T> GridPlainFuture<T> chain(GridPlainClosure<GridPlainFuture<R>,T> cb)
cb closure invoked on this future.cb - Callback closure.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015