Package reactor.test.publisher
Class PublisherProbe.DefaultPublisherProbe<T>
java.lang.Object
java.util.concurrent.atomic.AtomicLongArray
reactor.test.publisher.PublisherProbe.DefaultPublisherProbe<T>
- All Implemented Interfaces:
Serializable,PublisherProbe<T>
- Enclosing interface:
PublisherProbe<T>
public static final class PublisherProbe.DefaultPublisherProbe<T>
extends AtomicLongArray
implements PublisherProbe<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface reactor.test.publisher.PublisherProbe
PublisherProbe.DefaultPublisherProbe<T> -
Method Summary
Methods inherited from class java.util.concurrent.atomic.AtomicLongArray
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, lazySet, length, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface reactor.test.publisher.PublisherProbe
assertWasCancelled, assertWasNotCancelled, assertWasNotRequested, assertWasNotSubscribed, assertWasRequested, assertWasSubscribed
-
Method Details
-
mono
Description copied from interface:PublisherProbeReturn aMonoversion of the probe. Note all calls to mono() andPublisherProbe.flux()are backed by the samePublisherProbeand as such influence a single state.If the probe was
created out of a Publisher, theFluxwill forward the signals from this publisher (up to oneSubscriber.onNext(Object)though).Otherwiseit will simply complete.- Specified by:
monoin interfacePublisherProbe<T>- Returns:
- a
Monoversion of the probe.
-
flux
Description copied from interface:PublisherProbeReturn aFluxversion of the probe. Note all calls toPublisherProbe.mono()and flux() are backed by the samePublisherProbeand as such influence a single state.If the probe was
created out of a Publisher, theFluxwill forward the signals from this publisherOtherwiseit will simply complete.- Specified by:
fluxin interfacePublisherProbe<T>- Returns:
- a
Fluxversion of the probe.
-
wasSubscribed
public boolean wasSubscribed()- Specified by:
wasSubscribedin interfacePublisherProbe<T>- Returns:
- true if the probe was subscribed to at least once.
-
subscribeCount
public long subscribeCount()- Specified by:
subscribeCountin interfacePublisherProbe<T>- Returns:
- how many times probe was subscribed
-
wasCancelled
public boolean wasCancelled()- Specified by:
wasCancelledin interfacePublisherProbe<T>- Returns:
- true if the probe was cancelled to at least once.
-
wasRequested
public boolean wasRequested()- Specified by:
wasRequestedin interfacePublisherProbe<T>- Returns:
- true if the probe was requested at least once.
-