GigaSpaces XAP 9.7.2 API

com.gigaspaces.async
Interface AsyncResult<T>


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
 Exception getException()
          In case of an async invocation failure, returns the exception causing it.
 T getResult()
          Returns the result of the async invocation.
 

Method Detail

getResult

T getResult()
Returns the result of the async invocation. Returns null in 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 returns null.


GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.