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 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.void
onComplete()
void
onError(java.lang.Throwable t)
void
onNext(I item)
void
onSubscribe(org.reactivestreams.Subscription s)
void
subscribe(org.reactivestreams.Subscriber<? super O> downstream)
-
-
-
Method Detail
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super O> downstream)
- Specified by:
subscribe
in interfaceorg.reactivestreams.Publisher<I>
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<I>
-
onNext
public void onNext(I item)
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<I>
-
onError
public void onError(java.lang.Throwable t)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<I>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in 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
-
-