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, scheduler, tail
-
-
Constructor Summary
Constructors Constructor Description EmbeddedPipeline()
EmbeddedPipeline(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<ApplicationMessage>
inboundMessages()
io.reactivex.rxjava3.core.Observable<ApplicationMessage>
outboundMessages()
-
Methods inherited from class org.drasyl.pipeline.DefaultPipeline
addAfter, addBefore, addFirst, addLast, context, executeInbound, executeInbound, executeOutbound, get, initPointer, remove, replace
-
-
-
-
Constructor Detail
-
EmbeddedPipeline
public EmbeddedPipeline(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()
-
-
Method Detail
-
inboundMessages
public io.reactivex.rxjava3.core.Observable<ApplicationMessage> 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
-
-