public final class FutureResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EVENT_RESULT_AVAILABLE
This event is raised once the result becomes available.
|
Constructor and Description |
---|
FutureResult()
Creates a new future result.
|
Modifier and Type | Method and Description |
---|---|
Result |
getResult()
Method to access the result of the remote call.
|
boolean |
isAvailable()
Determines whether the result is already available.
|
void |
setListener(IListener listener)
Sets a listener to the result and returns whether the
result is already available.
|
void |
setResult(Result result)
Method to set the real result of the remote call.
|
public static final int EVENT_RESULT_AVAILABLE
public void setListener(IListener listener)
listener
- The listener that will be notified once
the result gets available.public void setResult(Result result)
result
- The service result of the call.public Result getResult()
public boolean isAvailable()