Class MultiSelectFirstUntilOtherOp.TakeUntilOtherSubscriber<U>
- java.lang.Object
-
- io.smallrye.mutiny.operators.multi.MultiSelectFirstUntilOtherOp.TakeUntilOtherSubscriber<U>
-
- All Implemented Interfaces:
ContextSupport
,MultiSubscriber<U>
,org.reactivestreams.Subscriber<U>
- Enclosing class:
- MultiSelectFirstUntilOtherOp<T,U>
public static final class MultiSelectFirstUntilOtherOp.TakeUntilOtherSubscriber<U> extends java.lang.Object implements MultiSubscriber<U>, ContextSupport
-
-
Constructor Summary
Constructors Constructor Description TakeUntilOtherSubscriber(MultiSelectFirstUntilOtherOp.TakeUntilMainProcessor<?> main)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Context
context()
Provide a context.void
onCompletion()
Method called when the upstream emits acompletion
terminal event.void
onFailure(java.lang.Throwable t)
Method called when the upstream emits afailure
terminal event.void
onItem(U t)
Method called when the upstream emits anitem
event, in response to to requests toSubscription.request(long)
.void
onSubscribe(org.reactivestreams.Subscription s)
-
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
-
TakeUntilOtherSubscriber
public TakeUntilOtherSubscriber(MultiSelectFirstUntilOtherOp.TakeUntilMainProcessor<?> main)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<U>
-
onItem
public void onItem(U t)
Description copied from interface:MultiSubscriber
Method called when the upstream emits anitem
event, in response to to requests toSubscription.request(long)
.- Specified by:
onItem
in interfaceMultiSubscriber<U>
- Parameters:
t
- the item, must not benull
.
-
onFailure
public void onFailure(java.lang.Throwable t)
Description copied from interface:MultiSubscriber
Method called when the upstream emits afailure
terminal event.No further events will be sent even if
Subscription.request(long)
is invoked again.- Specified by:
onFailure
in interfaceMultiSubscriber<U>
- Parameters:
t
- the failure, must not benull
.
-
onCompletion
public void onCompletion()
Description copied from interface:MultiSubscriber
Method called when the upstream emits acompletion
terminal event.No further events will be sent even if
Subscription.request(long)
is invoked again.- Specified by:
onCompletion
in interfaceMultiSubscriber<U>
-
context
public Context context()
Description copied from interface:ContextSupport
Provide a context.Since calls to this method shall only be triggered when a Mutiny pipeline uses a
withContext
operator, there is no need in general for caching the context value in a field of the implementing class. Exceptions include operators that have cross-subscriber semantics such as memoizers or broadcasters.This method is expected to be called once per
withContext
operator.- Specified by:
context
in interfaceContextSupport
- Returns:
- the context, must not be
null
.
-
-