public class UnicastMonoProcessor<O> extends Mono<O> implements org.reactivestreams.Processor<O,O>, CoreSubscriber<O>, Disposable, org.reactivestreams.Subscription, Scannable
Disposable.Composite, Disposable.SwapScannable.Attr<T>OPERATOR_NAME_UNRELATED_WORDS_PATTERN| Constructor and Description |
|---|
UnicastMonoProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
static <T> UnicastMonoProcessor<T> |
create()
Create a
UnicastMonoProcessor that will eagerly request 1 on onSubscribe(Subscription), cache and emit the eventual result for 1 or N subscribers. |
Context |
currentContext() |
void |
dispose() |
Throwable |
getError()
Return the produced
Throwable error if any or null |
boolean |
hasDownstream()
Return true if any
Subscriber is actively subscribed |
boolean |
isCancelled()
Indicates whether this
UnicastMonoProcessor has been interrupted via cancellation. |
boolean |
isDisposed() |
boolean |
isError()
Indicates whether this
UnicastMonoProcessor has been completed with an error. |
boolean |
isTerminated()
Indicates whether this
UnicastMonoProcessor has been terminated by the source producer
with a success or an error. |
void |
onComplete() |
void |
onError(Throwable cause) |
void |
onNext(O value) |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
O |
peek()
Returns the value that completed this
UnicastMonoProcessor. |
void |
request(long n) |
Object |
scanUnsafe(Scannable.Attr key) |
void |
subscribe(CoreSubscriber<? super O> actual) |
and, as, block, block, blockOptional, blockOptional, cache, cache, cache, cache, cancelOn, cast, checkpoint, checkpoint, checkpoint, compose, concatWith, create, defaultIfEmpty, defer, deferWithContext, delay, delay, delayElement, delayElement, delaySubscription, delaySubscription, delaySubscription, delayUntil, dematerialize, doAfterSuccessOrError, doAfterTerminate, doFinally, doFirst, doOnCancel, doOnDiscard, doOnEach, doOnError, doOnError, doOnError, doOnNext, doOnRequest, doOnSubscribe, doOnSuccess, doOnSuccessOrError, doOnTerminate, elapsed, elapsed, empty, error, error, expand, expand, expandDeep, expandDeep, filter, filterWhen, first, first, flatMap, flatMapIterable, flatMapMany, flatMapMany, flux, from, fromCallable, fromCompletionStage, fromCompletionStage, fromDirect, fromFuture, fromFuture, fromRunnable, fromSupplier, handle, hasElement, hide, ignoreElement, ignoreElements, just, justOrEmpty, justOrEmpty, log, log, log, log, log, log, map, materialize, mergeWith, metrics, name, never, ofType, onAssembly, onErrorContinue, onErrorContinue, onErrorContinue, onErrorMap, onErrorMap, onErrorMap, onErrorResume, onErrorResume, onErrorResume, onErrorReturn, onErrorReturn, onErrorReturn, onErrorStop, onLastAssembly, onTerminateDetach, or, publish, publishOn, repeat, repeat, repeat, repeat, repeatWhen, repeatWhenEmpty, repeatWhenEmpty, retry, retry, retry, retry, retryBackoff, retryBackoff, retryBackoff, retryBackoff, retryBackoff, retryWhen, sequenceEqual, sequenceEqual, sequenceEqual, single, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, subscriberContext, subscriberContext, subscriberContext, subscribeWith, switchIfEmpty, tag, take, take, takeUntilOther, then, then, thenEmpty, thenMany, thenReturn, timeout, timeout, timeout, timeout, timeout, timeout, timestamp, timestamp, toFuture, toProcessor, toString, transform, transformDeferred, using, using, usingWhen, usingWhen, usingWhen, usingWhen, when, when, whenDelayError, whenDelayError, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipDelayError, zipWhen, zipWhen, zipWith, zipWithpublic static <T> UnicastMonoProcessor<T> create()
UnicastMonoProcessor that will eagerly request 1 on onSubscribe(Subscription), cache and emit the eventual result for 1 or N subscribers.T - type of the expected valueUnicastMonoProcessor.public final void cancel()
cancel in interface org.reactivestreams.Subscriptionpublic void dispose()
dispose in interface Disposable@Nullable public final Throwable getError()
Throwable error if any or nullThrowable error if any or nullpublic boolean isCancelled()
UnicastMonoProcessor has been interrupted via cancellation.true if this UnicastMonoProcessor is cancelled, false
otherwise.public final boolean isError()
UnicastMonoProcessor has been completed with an error.true if this UnicastMonoProcessor was completed with an error, false otherwise.public final boolean isTerminated()
UnicastMonoProcessor has been terminated by the source producer
with a success or an error.true if this UnicastMonoProcessor is successful, false
otherwise.public boolean isDisposed()
isDisposed in interface Disposablepublic final void onComplete()
onComplete in interface org.reactivestreams.Subscriber<O>public final void onError(Throwable cause)
onError in interface org.reactivestreams.Subscriber<O>public final void onNext(@Nullable O value)
onNext in interface org.reactivestreams.Subscriber<O>public final void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe in interface org.reactivestreams.Subscriber<O>onSubscribe in interface CoreSubscriber<O>@Nullable public O peek()
UnicastMonoProcessor. Returns null if the
UnicastMonoProcessor has not been completed. If the UnicastMonoProcessor is
completed with an error a RuntimeException that wraps the error is thrown.UnicastMonoProcessor, or null if it has
not been completedRuntimeException - if the UnicastMonoProcessor was completed with an errorpublic final void request(long n)
request in interface org.reactivestreams.Subscriptionpublic Context currentContext()
currentContext in interface CoreSubscriber<O>@Nullable public Object scanUnsafe(Scannable.Attr key)
scanUnsafe in interface Scannablepublic final boolean hasDownstream()
Subscriber is actively subscribedSubscriber is actively subscribedpublic void subscribe(CoreSubscriber<? super O> actual)