Package com.lucimber.dbus.connection
Interface InboundHandler
- All Superinterfaces:
Handler
- All Known Implementing Classes:
AbstractDuplexHandler,AbstractInboundHandler,ConnectionHealthHandler,ConnectionReconnectHandler,StandardInterfaceHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleInboundFailure(Context ctx, Throwable cause) Invoked when an error occurs during the processing of an inbound message.voidhandleInboundMessage(Context ctx, InboundMessage msg) Invoked when an inbound message is received and propagated through the pipeline.Methods inherited from interface com.lucimber.dbus.connection.Handler
handleUserEvent, onConnectionActive, onConnectionInactive, onHandlerAdded, onHandlerRemoved
-
Method Details
-
handleInboundFailure
Invoked when an error occurs during the processing of an inbound message.This method can be used to log, transform, or recover from the error as appropriate.
-
handleInboundMessage
Invoked when an inbound message is received and propagated through the pipeline.Handlers may inspect, transform, or act upon the message before forwarding it downstream.
- Parameters:
ctx- theContextthis handler is bound to.msg- theInboundMessagebeing processed.
-