Package com.lucimber.dbus.connection
Interface OutboundHandler
- All Superinterfaces:
Handler
- All Known Implementing Classes:
AbstractDuplexHandler,AbstractOutboundHandler,ConnectionHealthHandler,ConnectionReconnectHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleOutboundMessage(Context ctx, OutboundMessage msg, CompletableFuture<Void> future) Invoked when an outbound message is propagated through the pipeline.Methods inherited from interface com.lucimber.dbus.connection.Handler
handleUserEvent, onConnectionActive, onConnectionInactive, onHandlerAdded, onHandlerRemoved
-
Method Details
-
handleOutboundMessage
Invoked when an outbound message is propagated through the pipeline.This method is responsible for handling or forwarding the outbound
OutboundMessage. Completion of the providedCompletableFuturesignals the success or failure of the operation.- Parameters:
ctx- theContextthis 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.
-