public static final class PublisherProbe.DefaultPublisherProbe<T> extends java.util.concurrent.atomic.AtomicLongArray implements PublisherProbe<T>
PublisherProbe.DefaultPublisherProbe<T>| Modifier and Type | Method and Description |
|---|---|
Flux<T> |
flux()
Return a
Flux version of the probe. |
Mono<T> |
mono()
Return a
Mono version of the probe. |
long |
subscribeCount() |
boolean |
wasCancelled() |
boolean |
wasRequested() |
boolean |
wasSubscribed() |
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, lazySet, length, set, toString, updateAndGet, weakCompareAndSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassertWasCancelled, assertWasNotCancelled, assertWasNotRequested, assertWasNotSubscribed, assertWasRequested, assertWasSubscribed, empty, ofpublic Mono<T> mono()
PublisherProbeMono version of the probe. Note all calls to mono() and
PublisherProbe.flux() are backed by the same PublisherProbe and as such influence
a single state.
If the probe was created out of a Publisher, the Flux
will forward the signals from this publisher (up to one Subscriber.onNext(Object) though).
Otherwise it will simply complete.
mono in interface PublisherProbe<T>Mono version of the probe.public Flux<T> flux()
PublisherProbeFlux version of the probe. Note all calls to PublisherProbe.mono() and
flux() are backed by the same PublisherProbe and as such influence
a single state.
If the probe was created out of a Publisher, the Flux
will forward the signals from this publisher
Otherwise it will simply complete.
flux in interface PublisherProbe<T>Flux version of the probe.public boolean wasSubscribed()
wasSubscribed in interface PublisherProbe<T>public long subscribeCount()
subscribeCount in interface PublisherProbe<T>public boolean wasCancelled()
wasCancelled in interface PublisherProbe<T>public boolean wasRequested()
wasRequested in interface PublisherProbe<T>