Interface OutboundHandler

All Superinterfaces:
Handler
All Known Implementing Classes:
AbstractDuplexHandler, AbstractOutboundHandler, ConnectionHealthHandler, ConnectionReconnectHandler

public interface OutboundHandler extends Handler
A specialized Handler for processing outbound events in a Pipeline.

Outbound handlers process messages and events that flow from the tail toward the head of the pipeline, typically in preparation for transmission.

See Also:
  • Method Details

    • handleOutboundMessage

      void handleOutboundMessage(Context ctx, OutboundMessage msg, CompletableFuture<Void> future)
      Invoked when an outbound message is propagated through the pipeline.

      This method is responsible for handling or forwarding the outbound OutboundMessage. Completion of the provided CompletableFuture signals the success or failure of the operation.

      Parameters:
      ctx - the Context this handler is bound to.
      msg - the outbound message to process.
      future - the future to complete once the message has been handled or an error has occurred.