public interface IFuture<E>
Modifier and Type | Field and Description |
---|---|
static IFuture<Void> |
DONE
A future representing a completed action.
|
Modifier and Type | Method and Description |
---|---|
void |
addResultListener(IResultListener<E> listener)
Add a result listener.
|
E |
get(ISuspendable caller)
Get the result - blocking call.
|
E |
get(ISuspendable caller,
long timeout)
Get the result - blocking call.
|
Exception |
getException()
Get the exception, if any.
|
boolean |
isDone()
Test if done, i.e. result is available.
|
boolean isDone()
Exception getException()
E get(ISuspendable caller)
E get(ISuspendable caller, long timeout)
timeout
- The timeout in millis.void addResultListener(IResultListener<E> listener)
listener
- The listener.Copyright © 2012. All Rights Reserved.