Module io.smallrye.mutiny
Class SerializedProcessor<I,O>
java.lang.Object
io.smallrye.mutiny.operators.multi.processors.SerializedProcessor<I,O>
- Type Parameters:
I- the type of item from upstreamO- the type of item propagated to the downstream
- All Implemented Interfaces:
Flow.Processor<I,,O> Flow.Publisher<O>,Flow.Subscriber<I>
Wraps a processor into a serialized version of this processor.
-
Constructor Summary
ConstructorsConstructorDescriptionSerializedProcessor(Flow.Processor<I, O> actual) Constructor that wraps an actual processor. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(List<Object> queue, Flow.Subscriber<I> subscriber) Dispatches the events contained in the queue to the given subscriber.voidvoidvoidvoidvoidsubscribe(Flow.Subscriber<? super O> downstream)
-
Constructor Details
-
SerializedProcessor
Constructor that wraps an actual processor.- Parameters:
actual- the subject wrapped
-
-
Method Details
-
subscribe
- Specified by:
subscribein interfaceFlow.Publisher<I>
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<I>
-
onNext
- Specified by:
onNextin interfaceFlow.Subscriber<I>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<I>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<I>
-
dispatch
Dispatches the events contained in the queue to the given subscriber.- Parameters:
queue- the queue of eventsubscriber- the subscriber to emit the events to
-