public class DefaultAsyncResult<T> extends Object implements AsyncResult<T>, Textualizable
| Constructor and Description |
|---|
DefaultAsyncResult(T result,
Exception exception) |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException()
In case of an async invocation failure, returns the exception causing it.
|
T |
getResult()
Returns the result of the async invocation.
|
String |
toString() |
void |
toText(Textualizer textualizer) |
public T getResult()
AsyncResultnull in case of an
exception. AsyncResult.getException() should be checked for successful execution.getResult in interface AsyncResult<T>public Exception getException()
AsyncResultnull.getException in interface AsyncResult<T>public void toText(Textualizer textualizer)
toText in interface TextualizableCopyright © GigaSpaces.