Interface IngressClient.AwakeableHandle

  • Enclosing interface:
    IngressClient

    public static interface IngressClient.AwakeableHandle
    This class represents a handle to an Awakeable. It can be used to complete awakeables from the ingress
    • Method Detail

      • resolveAsync

        <T> java.util.concurrent.CompletableFuture<java.lang.Void> resolveAsync​(Serde<T> serde,
                                                                                @NonNull T payload)
        Same as resolve(Serde, Object) but async.
      • resolve

        default <T> void resolve​(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.
      • rejectAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> rejectAsync​(java.lang.String reason)
        Same as reject(String) but async.
      • reject

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