Package org.drasyl.pipeline
Link between application and drasyl overlay network. Every message and every event is sent
through the pipeline.
-
Interface Summary Interface Description AutoSwallow All classes that implement this interface will be silent and automatically swallowed at the end of the pipeline.Handler Handles an I/O event or intercepts an I/O operation, and forwards it to its next handler in itsPipeline
.HandlerContext Pipeline A list ofHandler
s which handles or intercepts inbound events and outbound operations of aDrasylNode
. -
Class Summary Class Description AbstractPipeline AbstractPipeline
implementation, that needs head and tail.DefaultHandlerContext The default handler context implementation.DrasylPipeline The defaultPipeline
implementation.EmbeddedPipeline HandlerMask Class to compute the mask of a givenHandler
.VisualPipeline Helper class to visualize theHandler
order of a givenAbstractPipeline
. -
Annotation Types Summary Annotation Type Description Skip Indicates that the annotated handler method (Handler.read(HandlerContext, Address, Object, CompletableFuture)
,Handler.write(HandlerContext, Address, Object, CompletableFuture)
,Handler.eventTriggered(HandlerContext, Event, CompletableFuture)
orHandler.exceptionCaught(HandlerContext, Exception)
) inHandler
will not be invoked by thePipeline
and so MUST only be used when theHandler
method does nothing except forward to the nextHandler
in the pipeline.Stateless Indicates that the annotated handler class is stateless and can safely be shared among multiple instances.