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