Package kalix.javasdk

Interface DeferredCall<I,O>

Type Parameters:
I - The type of message the call accepts
O - The type of message the call returns

public interface DeferredCall<I,O>
Represents a call to another component, performed as a forward, a side effect, or a request-reply.

Not for user extension.

  • Method Details

    • message

      I message()
      The message to pass to the call when the call is invoked.
    • metadata

      Metadata metadata()
      Returns:
      The metadata to pass with the message when the call is invoked.
    • execute

      CompletionStage<O> execute()
      Execute this call right away and get the async result back for composition. Can be used to create an async reply in an Action with effects().asyncReply and effects().asyncEffect
    • withMetadata

      DeferredCall<I,O> withMetadata(Metadata metadata)
      Returns:
      DeferredCall with updated metadata