Interface AwakeableHandle


  • public interface AwakeableHandle
    This class represents a handle to an Awakeable created in another service.
    • Method Detail

      • resolve

        <T> void resolve​(dev.restate.sdk.common.Serde<T> serde,
                         @Nonnull
                         T payload)
        Complete with success the Awakeable.
        Parameters:
        serde - used to serialize the Awakeable result payload.
        payload - the result payload. MUST NOT be null.
        See Also:
        Awakeable
      • reject

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