Package com.gigaspaces.async
Interface AsyncResult<T>
- All Known Implementing Classes:
DefaultAsyncResult
public interface AsyncResult<T>
An async invocation result holding the actual result of the invocation or an possible exception
raised during the invocation.
- Since:
- 6.6
- Author:
- Assaf Ronen
-
Method Summary
Modifier and TypeMethodDescriptionIn case of an async invocation failure, returns the exception causing it.Returns the result of the async invocation.
-
Method Details
-
getResult
T getResult()Returns the result of the async invocation. Returnsnullin case of an exception.getException()should be checked for successful execution. -
getException
Exception getException()In case of an async invocation failure, returns the exception causing it. If the invocation is successful, this method returnsnull.
-