public interface GridClientFuture<R>
| Modifier and Type | Method and Description |
|---|---|
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(GridClientFutureListener<R>... lsnrs)
Register new listeners for notification when future completes.
|
void |
stopListenAsync(GridClientFutureListener<R>... lsnrs)
Removes listeners registered before.
|
R get() throws GridClientException
GridClientException - In case of error.R get(long timeout, TimeUnit unit) throws GridClientException
timeout - Timeout interval to wait future completes.unit - Timeout interval unit to wait future completes.GridClientException - In case of error.GridClientFutureTimeoutException - If timed out before future finishes.boolean isDone()
void listenAsync(GridClientFutureListener<R>... lsnrs)
lsnrs - Listeners to be registered.void stopListenAsync(GridClientFutureListener<R>... lsnrs)
lsnrs - Listeners to be removed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015