Package com.lucimber.dbus.connection
Interface OutboundHandler
- All Superinterfaces:
Handler
- All Known Implementing Classes:
AbstractDuplexHandler
,AbstractOutboundHandler
,ConnectionHealthHandler
,ConnectionReconnectHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleOutboundMessage
(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 providedCompletableFuture
signals the success or failure of the operation.- Parameters:
ctx
- theContext
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.
-