Interface DurablePromiseHandle<T>


  • public interface DurablePromiseHandle<T>
    This class represents a handle to an DurablePromise created in another handler.
    • Method Detail

      • resolve

        void resolve​(T payload)
              throws java.lang.IllegalStateException
        Complete with success the DurablePromise.
        Parameters:
        payload - the result payload.
        Throws:
        java.lang.IllegalStateException
        See Also:
        DurablePromise
      • reject

        void reject​(java.lang.String reason)
             throws java.lang.IllegalStateException
        Complete with failure the DurablePromise.
        Parameters:
        reason - the rejection reason. MUST NOT be null.
        Throws:
        java.lang.IllegalStateException
        See Also:
        DurablePromise