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 Type
    Method
    Description
    In 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. 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.