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| 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 a single subscriber. |
static <T> UnicastMonoProcessor<T> |
create(MonoLifecycleHandler<T> lifecycleHandler)
Create a
UnicastMonoProcessor that will eagerly request 1 on onSubscribe(Subscription), cache and emit the eventual result for a single subscriber. |
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() |
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, 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 a single subscriber.T - type of the expected valueUnicastMonoProcessor.public static <T> UnicastMonoProcessor<T> create(MonoLifecycleHandler<T> lifecycleHandler)
UnicastMonoProcessor that will eagerly request 1 on onSubscribe(Subscription), cache and emit the eventual result for a single subscriber.T - type of the expected valuelifecycleHandler - lifecycle handlerUnicastMonoProcessor.@NonNull public Context currentContext()
currentContext in interface CoreSubscriber<O>public final void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe in interface org.reactivestreams.Subscriber<O>onSubscribe in interface CoreSubscriber<O>public 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 void subscribe(CoreSubscriber<? super O> actual)
public final void request(long n)
request in interface org.reactivestreams.Subscriptionpublic final void cancel()
cancel in interface org.reactivestreams.Subscriptionpublic void dispose()
dispose in interface Disposable@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 error@Nullable public final Throwable getError()
Throwable error if any or nullThrowable error if any or nullpublic final boolean isError()
UnicastMonoProcessor has been completed with an error.true if this UnicastMonoProcessor was completed with an error, false otherwise.public boolean isCancelled()
UnicastMonoProcessor has been interrupted via cancellation.true if this UnicastMonoProcessor is cancelled, false
otherwise.public final boolean isTerminated()
public boolean isDisposed()
isDisposed in interface Disposable@Nullable public Object scanUnsafe(Scannable.Attr key)
scanUnsafe in interface Scannablepublic final boolean hasDownstream()
Subscriber is actively subscribedSubscriber is actively subscribed