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:
org.reactivestreams.Processor<I,O>,org.reactivestreams.Publisher<O>,org.reactivestreams.Subscriber<I>
public class SerializedProcessor<I,O> extends java.lang.Object implements org.reactivestreams.Processor<I,O>Wraps a processor into a serialized version of this processor.
-
-
Constructor Summary
Constructors Constructor Description SerializedProcessor(org.reactivestreams.Processor<I,O> actual)Constructor that wraps an actual processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(java.util.List<java.lang.Object> queue, org.reactivestreams.Subscriber<I> subscriber)Dispatches the events contained in the queue to the given subscriber.voidonComplete()voidonError(java.lang.Throwable t)voidonNext(I item)voidonSubscribe(org.reactivestreams.Subscription s)voidsubscribe(org.reactivestreams.Subscriber<? super O> downstream)
-
-
-
Method Detail
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super O> downstream)
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<I>
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<I>
-
onNext
public void onNext(I item)
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<I>
-
onError
public void onError(java.lang.Throwable t)
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<I>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<I>
-
dispatch
public void dispatch(java.util.List<java.lang.Object> queue, org.reactivestreams.Subscriber<I> subscriber)Dispatches the events contained in the queue to the given subscriber.- Parameters:
queue- the queue of eventsubscriber- the subscriber to emit the events to
-
-