Interface AwakeableHandle


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

    Modifier and Type
    Method
    Description
    void
    reject(String reason)
    Complete with failure the Awakeable.
    <T> void
    resolve(TypeTag<T> typeTag, T payload)
    Complete with success the Awakeable.
    default <T> void
    resolve(Class<T> clazz, T payload)
    Complete with success the Awakeable.
  • Method Details

    • resolve

      <T> void resolve(TypeTag<T> typeTag, T payload)
      Complete with success the Awakeable.
      Parameters:
      typeTag - used to serialize the Awakeable result payload.
      payload - the result payload. MUST NOT be null.
      See Also:
    • resolve

      default <T> void resolve(Class<T> clazz, T payload)
      Complete with success the Awakeable.
      Parameters:
      clazz - used to serialize the Awakeable result payload.
      payload - the result payload. MUST NOT be null.
      See Also:
    • reject

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