Package org.drasyl.pipeline
Class EmbeddedPipeline
- java.lang.Object
-
- org.drasyl.pipeline.DefaultPipeline
-
- org.drasyl.pipeline.EmbeddedPipeline
-
- All Implemented Interfaces:
Pipeline
public class EmbeddedPipeline extends DefaultPipeline
-
-
Field Summary
-
Fields inherited from class org.drasyl.pipeline.DefaultPipeline
config, handlerNames, head, identity, scheduler, tail, validator
-
-
Constructor Summary
Constructors Constructor Description EmbeddedPipeline(Identity identity, TypeValidator validator)
EmbeddedPipeline(Identity identity, TypeValidator validator, Handler... handlers)
Creates a new embedded pipeline and adds all given handler to it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.reactivex.rxjava3.core.Observable<Event>
inboundEvents()
io.reactivex.rxjava3.core.Observable<Pair<CompressedPublicKey,Object>>
inboundMessages()
io.reactivex.rxjava3.core.Observable<ApplicationMessage>
outboundMessages()
-
Methods inherited from class org.drasyl.pipeline.DefaultPipeline
addAfter, addBefore, addFirst, addLast, context, get, initPointer, processInbound, processInbound, processOutbound, remove, replace
-
-
-
-
Constructor Detail
-
EmbeddedPipeline
public EmbeddedPipeline(Identity identity, TypeValidator validator, Handler... handlers)
Creates a new embedded pipeline and adds all given handler to it. Handler are added with their simple class name.- Parameters:
handlers
- the handlers
-
EmbeddedPipeline
public EmbeddedPipeline(Identity identity, TypeValidator validator)
-
-
Method Detail
-
inboundMessages
public io.reactivex.rxjava3.core.Observable<Pair<CompressedPublicKey,Object>> inboundMessages()
- Returns:
- all messages that passes the pipeline until the end
-
inboundEvents
public io.reactivex.rxjava3.core.Observable<Event> inboundEvents()
- Returns:
- all events that passes the pipeline until the end
-
outboundMessages
public io.reactivex.rxjava3.core.Observable<ApplicationMessage> outboundMessages()
- Returns:
- all messages that passes the pipeline until the end
-
-