Uses of Interface
org.drasyl.pipeline.Handler
-
Packages that use Handler Package Description org.drasyl.peer.connection.pipeline org.drasyl.pipeline Link between application and drasyl overlay network.org.drasyl.pipeline.codec Package contains classes that are used for encoding/decoding objects. -
-
Uses of Handler in org.drasyl.peer.connection.pipeline
Classes in org.drasyl.peer.connection.pipeline that implement Handler Modifier and Type Class Description class
DirectConnectionMessageSinkHandler
This handler tries to send outgoing messages via TCP-based direct connection to another peers.class
LoopbackMessageSinkHandler
This handler delivers outgoing messages addressed to the local node.class
SuperPeerMessageSinkHandler
-
Uses of Handler in org.drasyl.pipeline
Classes in org.drasyl.pipeline that implement Handler Modifier and Type Class Description class
AddressHandlerAdapter<A>
HandlerAdapter
which allows to explicit only handle a specific type of address.class
HandlerAdapter
Skeleton implementation of aHandler
.class
SimpleDuplexHandler<I,E,O,A extends Address>
HandlerAdapter
which allows to explicit only handle a specific type of messages and events.class
SimpleInboundHandler<I,E,A extends Address>
HandlerAdapter
which allows to explicit only handle a specific type of messages and events.class
SimpleOutboundHandler<O,A extends Address>
HandlerAdapter
which allows to explicit only handle a specific type of messages.Methods in org.drasyl.pipeline that return Handler Modifier and Type Method Description Handler
DefaultPipeline. get(String name)
Handler
Pipeline. get(String name)
Returns theHandler
with the specified name in this pipeline.Handler
DefaultHandlerContext. handler()
Handler
HandlerContext. handler()
Returns the associatedHandler
.Methods in org.drasyl.pipeline with parameters of type Handler Modifier and Type Method Description Pipeline
DefaultPipeline. addAfter(String baseName, String name, Handler handler)
Pipeline
Pipeline. addAfter(String baseName, String name, Handler handler)
Inserts aHandler
after an existing handler of this pipeline.Pipeline
DefaultPipeline. addBefore(String baseName, String name, Handler handler)
Pipeline
Pipeline. addBefore(String baseName, String name, Handler handler)
Inserts aHandler
before an existing handler of this pipeline.Pipeline
DefaultPipeline. addFirst(String name, Handler handler)
Pipeline
Pipeline. addFirst(String name, Handler handler)
Inserts aHandler
at the first position of this pipeline.Pipeline
DefaultPipeline. addLast(String name, Handler handler)
Pipeline
Pipeline. addLast(String name, Handler handler)
Appends aHandler
at the last position of this pipeline.Pipeline
DefaultPipeline. replace(String oldName, String newName, Handler newHandler)
Pipeline
Pipeline. replace(String oldName, String newName, Handler newHandler)
Replaces theHandler
of the specified name with a new handler in this pipeline.Constructors in org.drasyl.pipeline with parameters of type Handler Constructor Description DefaultHandlerContext(String name, Handler handler, DrasylConfig config, Pipeline pipeline, io.reactivex.rxjava3.core.Scheduler scheduler, Identity identity, TypeValidator inboundValidator, TypeValidator outboundValidator)
Generates a new default handler context for the givenhandler
.EmbeddedPipeline(Identity identity, TypeValidator inboundValidator, TypeValidator outboundValidator, Handler... handlers)
Creates a new embedded pipeline and adds all given handler to it. -
Uses of Handler in org.drasyl.pipeline.codec
Classes in org.drasyl.pipeline.codec that implement Handler Modifier and Type Class Description class
ApplicationMessage2ObjectHolderHandler
Handler that converts a givenApplicationMessage
to anObjectHolder
.class
Codec<E,D,A extends Address>
Standard interface for all codecs of thePipeline
.class
DefaultCodec
This default codec allows to encode/decode all supported objects by Jackson.class
ObjectHolder2ApplicationMessageHandler
Handler that convert a givenObjectHolder
to anApplicationMessage
.
-