Package io.smallrye.mutiny.helpers.spies
Class MultiOnCancellationSpy<T>
- java.lang.Object
-
- io.smallrye.mutiny.operators.AbstractMulti<O>
-
- io.smallrye.mutiny.operators.multi.AbstractMultiOperator<T,T>
-
- io.smallrye.mutiny.helpers.spies.MultiOnCancellationSpy<T>
-
- All Implemented Interfaces:
Multi<T>
,org.reactivestreams.Publisher<T>
public class MultiOnCancellationSpy<T> extends io.smallrye.mutiny.operators.multi.AbstractMultiOperator<T,T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertCancelled()
void
assertNotCancelled()
protected void
incrementInvocationCount()
long
invocationCount()
boolean
invoked()
boolean
isCancelled()
void
reset()
void
subscribe(MultiSubscriber<? super T> downstream)
java.lang.String
toString()
-
Methods inherited from class io.smallrye.mutiny.operators.AbstractMulti
broadcast, cache, capDemandsUsing, collect, convert, emitOn, group, ifNoItem, log, log, onCancellation, onCompletion, onFailure, onFailure, onFailure, onItem, onOverflow, onRequest, onSubscribe, onSubscription, onTermination, paceDemand, runSubscriptionOn, select, skip, subscribe, subscribe, toHotStream, toUni, withContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.smallrye.mutiny.Multi
attachContext, broadcast, cache, call, call, capDemandsTo, capDemandsUsing, collect, concatMap, convert, emitOn, filter, flatMap, group, ifNoItem, invoke, invoke, log, log, map, onCancellation, onCompletion, onFailure, onFailure, onFailure, onItem, onOverflow, onRequest, onSubscribe, onSubscription, onTermination, paceDemand, plug, runSubscriptionOn, select, skip, stage, subscribe, toHotStream, toUni, withContext
-
-
-
-
Method Detail
-
subscribe
public void subscribe(MultiSubscriber<? super T> downstream)
- Overrides:
subscribe
in classAbstractMulti<T>
-
isCancelled
public boolean isCancelled()
-
toString
public java.lang.String toString()
-
assertCancelled
public void assertCancelled()
-
assertNotCancelled
public void assertNotCancelled()
-
incrementInvocationCount
protected void incrementInvocationCount()
-
invocationCount
public long invocationCount()
-
invoked
public boolean invoked()
-
reset
public void reset()
-
-