Class WrappedAsyncResult

    • Constructor Summary

      Constructors 
      Constructor Description
      WrappedAsyncResult​(AsyncResult wrapped)
      Create a new WrappedAsyncResult for the target AsyncResult
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AsyncResult getWrappedRequest()  
      boolean isComplete()
      Returns true if the AsyncResult has completed.
      void onFailure​(ProviderException result)
      If the operation fails this method is invoked with the Exception that caused the failure.
      void onSuccess()
      If the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WrappedAsyncResult

        public WrappedAsyncResult​(AsyncResult wrapped)
        Create a new WrappedAsyncResult for the target AsyncResult
        Parameters:
        wrapped - The AsyncResult to be wrapped by this AsyncResult instance.
    • Method Detail

      • onFailure

        public void onFailure​(ProviderException result)
        Description copied from interface: AsyncResult
        If the operation fails this method is invoked with the Exception that caused the failure.
        Specified by:
        onFailure in interface AsyncResult
        Parameters:
        result - The error that resulted in this asynchronous operation failing.
      • onSuccess

        public void onSuccess()
        Description copied from interface: AsyncResult
        If the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.
        Specified by:
        onSuccess in interface AsyncResult
      • isComplete

        public boolean isComplete()
        Description copied from interface: AsyncResult
        Returns true if the AsyncResult has completed. The task is considered complete regardless if it succeeded or failed.
        Specified by:
        isComplete in interface AsyncResult
        Returns:
        returns true if the asynchronous operation has completed.
      • getWrappedRequest

        public AsyncResult getWrappedRequest()