Class MultiFlatMapOp.FlatMapMainSubscriber<I,O>
- java.lang.Object
-
- io.smallrye.mutiny.operators.multi.MultiFlatMapOp.FlatMapMainSubscriber<I,O>
-
- All Implemented Interfaces:
MultiSubscriber<I>,org.reactivestreams.Subscriber<I>,org.reactivestreams.Subscription
- Enclosing class:
- MultiFlatMapOp<I,O>
public static final class MultiFlatMapOp.FlatMapMainSubscriber<I,O> extends java.lang.Object implements MultiSubscriber<I>, org.reactivestreams.Subscription
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.atomic.AtomicReference<T[]>inners
-
Constructor Summary
Constructors Constructor Description FlatMapMainSubscriber(MultiSubscriber<? super O> downstream, java.util.function.Function<? super I,? extends org.reactivestreams.Publisher<? extends O>> mapper, boolean delayError, int concurrency, java.util.function.Supplier<? extends java.util.Queue<O>> mainQueueSupplier, int requests)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidonCompletion()Method called when the upstream emits acompletionterminal event.voidonFailure(java.lang.Throwable failure)Method called when the upstream emits afailureterminal event.voidonItem(I item)Method called when the upstream emits anitemevent, in response to to requests toSubscription.request(long).voidonSubscribe(org.reactivestreams.Subscription s)voidrequest(long n)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.mutiny.subscription.MultiSubscriber
onComplete, onError, onNext
-
-
-
-
Constructor Detail
-
FlatMapMainSubscriber
public FlatMapMainSubscriber(MultiSubscriber<? super O> downstream, java.util.function.Function<? super I,? extends org.reactivestreams.Publisher<? extends O>> mapper, boolean delayError, int concurrency, java.util.function.Supplier<? extends java.util.Queue<O>> mainQueueSupplier, int requests)
-
-
Method Detail
-
request
public void request(long n)
- Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()
- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<I>
-
onItem
public void onItem(I item)
Description copied from interface:MultiSubscriberMethod called when the upstream emits anitemevent, in response to to requests toSubscription.request(long).- Specified by:
onItemin interfaceMultiSubscriber<I>- Parameters:
item- the item, must not benull.
-
onFailure
public void onFailure(java.lang.Throwable failure)
Description copied from interface:MultiSubscriberMethod called when the upstream emits afailureterminal event.No further events will be sent even if
Subscription.request(long)is invoked again.- Specified by:
onFailurein interfaceMultiSubscriber<I>- Parameters:
failure- the failure, must not benull.
-
onCompletion
public void onCompletion()
Description copied from interface:MultiSubscriberMethod called when the upstream emits acompletionterminal event.No further events will be sent even if
Subscription.request(long)is invoked again.- Specified by:
onCompletionin interfaceMultiSubscriber<I>
-
-