Package org.drasyl.pipeline
Interface InboundHandler
-
- All Superinterfaces:
Handler
- All Known Implementing Classes:
DuplexHandler
,InboundHandlerAdapter
,SimpleInboundHandler
,SimplexDuplexHandler
public interface InboundHandler extends Handler
Handler
which adds callbacks for state changes. This allows the user to hook in to state changes easily.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
eventTriggered(HandlerContext ctx, Event event)
Gets called if aEvent
was emitted.void
exceptionCaught(HandlerContext ctx, Exception cause)
Gets called if aException
was thrown.void
read(HandlerContext ctx, ApplicationMessage msg)
Gets called if aApplicationMessage
was received.-
Methods inherited from interface org.drasyl.pipeline.Handler
handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
read
void read(HandlerContext ctx, ApplicationMessage msg)
Gets called if aApplicationMessage
was received.- Parameters:
ctx
- handler contextmsg
- the message
-
eventTriggered
void eventTriggered(HandlerContext ctx, Event event)
Gets called if aEvent
was emitted.- Parameters:
ctx
- handler contextevent
- the event
-
exceptionCaught
void exceptionCaught(HandlerContext ctx, Exception cause)
Gets called if aException
was thrown.
-
-