Package com.gigaspaces.async.internal
Class DefaultAsyncResult<T>
java.lang.Object
com.gigaspaces.async.internal.DefaultAsyncResult<T>
- All Implemented Interfaces:
AsyncResult<T>,Textualizable
Default container for async result
- Since:
- 7.0
- Author:
- eitany
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIn case of an async invocation failure, returns the exception causing it.Returns the result of the async invocation.toString()voidtoText(Textualizer textualizer)
-
Constructor Details
-
DefaultAsyncResult
-
-
Method Details
-
getResult
Description copied from interface:AsyncResultReturns the result of the async invocation. Returnsnullin case of an exception.AsyncResult.getException()should be checked for successful execution.- Specified by:
getResultin interfaceAsyncResult<T>
-
getException
Description copied from interface:AsyncResultIn case of an async invocation failure, returns the exception causing it. If the invocation is successful, this method returnsnull.- Specified by:
getExceptionin interfaceAsyncResult<T>
-
toString
-
toText
- Specified by:
toTextin interfaceTextualizable
-