Publisher with basic rx operators that emits at most one item via the
onNext signal then terminates with an onComplete signal (successful Mono,
with or without value), or only emits a single onError signal (failed Mono).
Most Mono implementations are expected to immediately call Subscriber#onComplete()
after having called Subscriber#onNext(T). Mono. is an outlier: it doesn't
emit any signal, which is not technically forbidden although not terribly useful outside
of tests. On the other hand, a combination of onNext and onError is explicitly forbidden.
The recommended way to learn about the Mono API and discover new operators is
through the reference documentation, rather than through this javadoc (as opposed to
learning more about individual operators). See the
"which operator do I need?" appendix.
The rx operators will offer aliases for input Mono type to preserve the "at most one"
property of the resulting Mono. For instance flatMap returns a
Mono, while there is a flatMapMany alias with possibly more than
1 emission.
Mono<Void> should be used for Publisher that just completes without any value.
It is intended to be used in implementations and return types, input parameters should keep
using raw Publisher as much as possible.
Note that using state in the java.util.function / lambdas used within Mono operators
should be avoided, as these may be shared between several Subscribers.
Flux
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final BiPredicate |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Mono | |
| public final < the returned instance type P> P | |
| public T | |
| public T | Returns: T the resultmaximum time period to wait for before raising a timeout)RuntimeExceptionSubscribe to this |
| public Optional | Returns: T the resultSubscribe to this |
| public Optional | Returns: T the resultmaximum time period to wait for before raising a timeout)RuntimeExceptionSubscribe to this |
| public final Mono | Returns: a replayingMonoTurn this |
| public final Mono | Returns: a replayingMonoTurn this |
| public final Mono | |
| public final Mono | Returns: a replayingMonothe TTL-generating ttlForValue, Function<Throwable, Duration> Function invoked when source is valuedthe TTL-generating ttlForError, Supplier<Duration> Function invoked when source is erroringthe TTL-generating ttlForEmpty)Supplier invoked when source is emptyTurn this |
| public final Mono | Returns: a replayingMonothe TTL-generating ttlForValue, Function<Throwable, Duration> Function invoked when source is valuedthe TTL-generating ttlForError, Supplier<Duration> Function invoked when source is erroringthe TTL-generating ttlForEmpty, Scheduler Supplier invoked when source is emptythe timer)Scheduler on which to measure the duration.Turn this |
| public final Mono | Returns: a new cachedMono which can be invalidatedthe invalidationPredicate)Predicate used for cache invalidation. Returning true means the value is invalid and should be
removed from the cache.Cache |
| public final Mono | Returns: a new cachedMono which can be invalidatedthe invalidationTriggerGenerator)Function that generates new Mono<Void> triggers
used for invalidationCache |
| public final Mono | Returns: a new cachedMono which can be invalidatedthe invalidationTriggerGenerator, Consumer<? super T> Function that generates new Mono<Void> triggers
used for invalidationthe onInvalidate)Consumer that will be applied to cached value upon invalidationCache |
| public final Mono | |
| public final < the E> MonoMono output type | |
| public final Mono | Returns: the assembly tracingMonoActivate traceback (full assembly tracing) for this particular |
| public final Mono | Returns: the assembly markedMonoa unique enough description to include in the light assembly traceback. description)Activate traceback (assembly marker) for this particular |
| public final Mono | Returns: the assembly markedMono.a description (must be unique enough if forceStackTrace is set
to false). description, boolean false to make a light checkpoint without a stacktrace, true
to use a stack trace. forceStackTrace)Activate traceback (full assembly tracing or the lighter assembly marking depending on the
|
| public final Flux | |
| public final Mono | contextCapture()
If context-propagation library
is on the classpath, this is a convenience shortcut to capture thread local values during the
subscription phase and put them in the |
| public final Mono | Returns: a contextualizedMonothe contextToAppend)ContextView to merge with the downstream Context,
resulting in a new more complete Context that will be visible from upstream.Enrich the |
| public final Mono | |
| public static < The type of the value emitted T> Mono | |
| public final Mono | Returns: a newMonothe alternate value if this sequence is empty defaultV)Provide a default single value if this mono is completed without any data <img class="marble" src="doc-files/marbles/defaultIfEmpty.svg" alt="">
|
| public static < the element type of the returned Mono instance T> Mono | |
| public static < the element type of the returned Mono instance T> Mono | deferContextual(Function<ContextView, ? extends Mono<? extends T>>
a contextualMonoFactory)Mono factoryCreate a |
| public static Mono | |
| public static Mono | |
| public final Mono | Returns: a delayedMonoduration by which to delay the delay)Subscriber#onNext signalDelay this |
| public final Mono | Returns: a delayedMonoDuration by which to delay the Subscriber#onNext signala time-capable timer)Scheduler instance to delay the value signal onDelay this |
| public final Mono | Returns: a delayedMonoduration before subscribing this delay)MonoDelay the |
| public final Mono | Returns: a delayedMonoa time-capable timer)Scheduler instance to run onDelay the |
| public final < the other source type U> Mono | Returns: a delayedMonoa
subscriptionDelay)Publisher to signal by next or complete this Mono#subscribe(Subscriber)Delay the subscription to this |
| public final Mono | Returns: this Mono, but delayed until the derived publisher terminates.Subscribe to this |
| public final < the dematerialized type X> Mono | Returns: a dematerializedMonoAn operator working only if this |
| public final Mono | Returns: an observedMonothe callback to call after afterTerminate)Subscriber#onComplete or Subscriber#onErrorAdd behavior (side-effect) triggered after the |
| public final Mono | Returns: an observedMonothe callback to execute after a terminal signal (complete, error
or cancel) onFinally)Add behavior triggering after the |
| public final Mono | |
| public final Mono | Returns: a newMonothe callback to call on onCancel)Subscription#cancel()Add behavior triggered when the |
| public final <R> Mono | Returns: aMono that cleans up matching elements that get discarded upstream of it.the type, final Consumer<? super R> Class of elements in the upstream chain of operators that
this cleanup hook should take into account.a discardHook)Consumer of elements in the upstream chain of operators
that performs the cleanup.Potentially modify the behavior of the whole chain of operators upstream of this one to conditionally clean up elements that get discarded by these operators. |
| public final Mono | Returns: an observedMonothe mandatory callback to call on
signalConsumer)Subscriber#onNext(Object), Subscriber#onError(Throwable) and
Subscriber#onComplete()Add behavior triggered when the |
| public final Mono | |
| public final < type of the error to handle E extends Throwable> Mono | |
| public final Mono | |
| public final Mono | Returns: a newMonothe callback to call on onNext)Subscriber#onNextAdd behavior triggered when the |
| public final Mono | Returns: an observedMonothe consumer to invoke on each request consumer)Add behavior triggering a |
| pack-priv static <T> Mono | doOnSignal(Mono<T> source, Consumer<? super Subscription> onSubscribe, Consumer<? super T> onNext, LongConsumer onRequest, Runnable onCancel)
|
| public final Mono | Returns: a newMonothe callback to call on onSubscribe)Subscriber#onSubscribe(Subscription)Add behavior (side-effect) triggered when the |
| public final Mono | Returns: a newMonothe callback to call on, argument is null if the onSuccess)Mono
completes without data
Subscriber#onNext or Subscriber#onComplete without preceding Subscriber#onNextAdd behavior triggered as soon as the |
| pack-priv static <T> Mono | doOnTerminalSignal(Mono<T> source, Consumer<? super T> onSuccess, Consumer<? super Throwable> onError, BiConsumer<? super T, Throwable> onAfterTerminate)
|
| public final Mono | Returns: a newMonothe callback to call onTerminate)Subscriber#onNext, Subscriber#onComplete without preceding Subscriber#onNext or Subscriber#onErrorAdd behavior triggered when the |
| public final Mono | Returns: a newMono that emits a tuple of time elapsed in milliseconds and matching dataMap this |
| public final Mono | |
| public static < the reified T> MonoSubscriber type | |
| pack-priv static <T> Mono | |
| pack-priv static <T> BiPredicate | |
| public static < the reified T> MonoSubscriber type | |
| public static < the reified T> MonoSubscriber type | |
| public final Flux | Returns: this Mono expanded breadth-first to aFluxa capacity hint to prepare the inner queues to accommodate n
elements per level of recursion. capacityHint)Recursively expand elements into a graph and emit all the resulting element using a breadth-first traversal strategy. |
| public final Flux | |
| public final Flux | Returns: this Mono expanded depth-first to aFluxa capacity hint to prepare the inner queues to accommodate n
elements per level of recursion. capacityHint)Recursively expand elements into a graph and emit all the resulting element, in a depth-first traversal order. |
| public final Flux | Returns: this Mono expanded depth-first to aFluxRecursively expand elements into a graph and emit all the resulting element, in a depth-first traversal order. |
| public final Mono | |
| public final Mono | |
| public static < The type of the function result. T> Mono | Returns: a newMono behaving like the fastest of its sources.The deferred monos to use. monos)
Deprecated
use
Pick the first firstWithSignal(Mono[]). To be removed in reactor 3.5.
Mono to emit any signal (value, empty completion or error)
and replay that signal, effectively behaving like the fastest of these competing
sources.
|
| public static < The type of the function result. T> Mono | Returns: a newMono behaving like the fastest of its sources.The deferred monos to use. monos)
Deprecated
use
Pick the first firstWithSignal(Iterable). To be removed in reactor 3.5.
Mono to emit any signal (value, empty completion or error)
and replay that signal, effectively behaving like the fastest of these competing
sources.
|
| public static < The type of the function result. T> Mono | Returns: a newMono behaving like the fastest of its sources.The deferred monos to use. monos)Pick the first |
| public static < The type of the function result. T> Mono | Returns: a newMono behaving like the fastest of its sources.The deferred monos to use. monos)Pick the first |
| public static < The type of the element in the sources and the resulting mono T> Mono | |
| public static < The type of the element in the sources and the resulting mono T> Mono | Returns: a newMono behaving like the fastest of its sourcesthe first competing source first, Mono<? extends T>... Monothe other competing sources others)MonoPick the first |
| public final < the result type bound R> Mono | Returns: a newMono with an asynchronously mapped value.the function to dynamically bind a new transformer)MonoTransform the item emitted by this |
| public final < the merged output sequence type R> Flux | |
| public final < the merged sequence type R> Flux | Returns: a newFlux as the sequence is not guaranteed to be single at mostthe
mapper)Function to produce a sequence of R from the eventual passed Subscriber#onNextTransform the item emitted by this |
| public final < the type of the produced inner sequence R> Flux | Returns: a newFlux as the sequence is not guaranteed to be single at mostthe mapperOnNext, Function<? super Throwable, ? extends Publisher<? extends R>> Function to call on next data and returning a sequence to mergethe mapperOnError, Supplier<? extends Publisher<? extends R>> Function to call on error signal and returning a sequence to mergethe mapperOnComplete)Function to call on complete signal and returning a sequence to mergeTransform the signals emitted by this |
| public final Flux | |
| public static < the source type T> Mono | |
| public static < type of the expected value T> Mono | |
| public static < type of the expected value T> Mono | Returns: AMono.CompletionStage that will produce a value (or a null to
complete immediately)Create a |
| public static < type of the expected value T> Mono | Returns: AMono.The stageSupplier)Supplier of a CompletionStage that will produce a value (or a null to
complete immediately). This allows lazy triggering of CompletionStage-based APIs.Create a |
| public static < type of the value emitted by the publisher I> Mono | |
| public static < type of the expected value T> Mono | Returns: AMono.CompletableFuture that will produce a value (or a null to
complete immediately)Create a |
| public static < type of the expected value T> Mono | Returns: AMono.CompletableFuture that will produce a value (or a null to complete immediately)true to prevent cancellation of the future when the Mono is cancelled,
false otherwise (the default)Create a |
| public static < type of the expected value T> Mono | Returns: AMono.The futureSupplier)Supplier of a CompletableFuture that will produce a value
(or a null to complete immediately). This allows lazy triggering of future-based APIs.Create a |
| public static < type of the expected value T> Mono | Returns: AMono.The futureSupplier, boolean Supplier of a CompletableFuture that will produce a value
(or a null to complete immediately). This allows lazy triggering of future-based APIs.true to prevent cancellation of the future when the Mono is cancelled,
false otherwise (the default)Create a |
| public static < The generic type of the upstream, which is preserved by this operator T> Mono | |
| public static < type of the expected value T> Mono | |
| public final < the transformed type R> Mono | Returns: a transformedMonothe handling handler)BiConsumerHandle the items emitted by this |
| public final Mono | |
| public final Mono | |
| public final Mono | |
| public static < the source type of the ignored data T> Mono | Returns: a new completableMono.the source)Publisher to ignoreCreate a new |
| public static < the type of the produced item T> Mono | |
| public static < the type of the produced item T> Mono | Returns: aMono.the data)Optional item to onNext or onComplete if not presentCreate a new |
| public static < the type of the produced item T> Mono | Returns: aMono.the item to onNext or onComplete if null data)Create a new |
| public final Mono | |
| public final Mono | Returns: a newMonoto be mapped into logger configuration (e.g. org.springframework
.reactor). If category ends with "." like "reactor.", a generated operator
suffix will complete, e.g. "reactor.Flux.Map". category)Observe all Reactive Streams signals and use |
| public final Mono | Returns: a newMonoto be mapped into logger configuration (e.g. org.springframework
.reactor). If category ends with "." like "reactor.", a generated operator
suffix will complete, e.g. "reactor.Flux.Map". category, Level the level, SignalType... Level to enforce for this tracing Mono (only FINEST, FINE,
INFO, WARNING and SEVERE are taken into account)a vararg options)SignalType option to filter log messagesObserve Reactive Streams signals matching the passed flags |
| public final Mono | Returns: a new unalteredMonoto be mapped into logger configuration (e.g. org.springframework
.reactor). If category ends with "." like "reactor.", a generated operator
suffix will complete, e.g. "reactor.Mono.Map". category, Level the level, boolean Level to enforce for this tracing Mono (only FINEST, FINE,
INFO, WARNING and SEVERE are taken into account)capture the current stack to display operator
class/line number. showOperatorLine, SignalType... a vararg options)SignalType option to filter log messagesObserve Reactive Streams signals matching the passed filter |
| public final Mono | |
| public final Mono | Returns: a newMono that logs signalsthe logger, Level Logger to use, instead of resolving one through a category.the level, boolean Level to enforce for this tracing Flux (only FINEST, FINE,
INFO, WARNING and SEVERE are taken into account)capture the current stack to display operator class/line number. showOperatorLine, SignalType... a vararg options)SignalType option to filter log messagesObserve Reactive Streams signals matching the passed filter |
| public final < the transformed type R> Mono | |
| public final < the transformed type R> Mono | Returns: a newMonothe synchronous transforming mapper)FunctionTransform the item emitted by this |
| public final Mono | materialize()
Transform incoming onNext, onError and onComplete signals into |
| public final Flux | |
| public final Mono | Returns: an instrumentedMono
Deprecated
Prefer using the
Activate metrics for this sequence, provided there is an instrumentation facade
on the classpath (otherwise this method is a pure no-op).
tap(SignalListenerFactory) with the SignalListenerFactory provided by
the new reactor-core-micrometer module.
|
| public final Mono | Returns: the same sequence, but bearing a namea name for the sequence name)Give a name to this sequence, which can be retrieved using |
| public static < the T> MonoSubscriber type target | |
| public final <U> Mono | |
| protected static < the value type T> Mono | Returns: the source, potentially wrapped with assembly time cross-cutting behaviorthe source to apply assembly hooks onto source)To be used by custom operators: invokes assembly |
| public final Mono | Returns: a newMono falling back on completion when an onError occursSimply complete the sequence by replacing an |
| public final Mono | Returns: a newMono falling back on completion when a matching error occursSimply complete the sequence by replacing an |
| public final Mono | Returns: a newMono falling back on completion when a matching error occursSimply complete the sequence by replacing an |
| public final Mono | Returns: aMono that attempts to continue processing on errors.a errorConsumer)BiConsumer fed with errors matching the Class
and the value that triggered the error.Let compatible operators upstream recover from errors by dropping the incriminating element from the sequence and continuing with subsequent elements. |
| public final <E extends Throwable> Mono | Returns: aMono that attempts to continue processing on some errors.a errorConsumer)BiConsumer fed with errors matching the Class
and the value that triggered the error.Let compatible operators upstream recover from errors by dropping the incriminating element from the sequence and continuing with subsequent elements. |
| public final <E extends Throwable> Mono | Returns: aMono that attempts to continue processing on some errors.a errorPredicate, BiConsumer<Throwable, Object> Predicate used to filter which errors should be resumed from.
This MUST be idempotent, as it can be used several times.a errorConsumer)BiConsumer fed with errors matching the predicate and the value
that triggered the error.Let compatible operators upstream recover from errors by dropping the incriminating element from the sequence and continuing with subsequent elements. |
| public final Mono | Returns: aMono that transforms some source errors to other errorsthe error predicate predicate, Function<? super Throwable, ? extends Throwable> the error transforming mapper)FunctionTransform an error emitted by this |
| public final Mono | |
| public final < the error type E extends Throwable> Mono | Returns: aMono that transforms some source errors to other errorsthe class of the exception type to react to type, Function<? super E, ? extends Throwable> the error transforming mapper)FunctionTransform an error emitted by this |
| public final Mono | Returns: aMono falling back upon source onErrorthe function to choose the fallback to an alternative fallback)MonoSubscribe to a fallback publisher when any error occurs, using a function to choose the fallback depending on the error. |
| public final < the error type E extends Throwable> Mono | Returns: aMono falling back upon source onErrorthe error type to match type, Function<? super E, ? extends Mono<? extends T>> the function to choose the fallback to an alternative fallback)MonoSubscribe to a fallback publisher when an error matching the given type occurs, using a function to choose the fallback depending on the error. |
| public final Mono | Returns: aMono falling back upon source onErrorthe error predicate to match predicate, Function<? super Throwable, ? extends Mono<? extends T>> the function to choose the fallback to an alternative fallback)MonoSubscribe to a fallback publisher when an error matching a given predicate occurs. |
| public final Mono | Returns: a new falling backMonothe value to emit if an error occurs fallbackValue)Simply emit a captured fallback value when any error is observed on this |
| public final < the error type E extends Throwable> Mono | Returns: a new falling backMonothe error type to match type, T the value to emit if an error occurs that matches the type fallbackValue)Simply emit a captured fallback value when an error of the specified type is
observed on this |
| public final Mono | Returns: a newMonothe error predicate to match predicate, T the value to emit if an error occurs that matches the predicate fallbackValue)Simply emit a captured fallback value when an error matching the given predicate is
observed on this |
| public final Mono | onErrorStop()
If an |
| public final Mono | Returns: a detachableMonoDetaches both the child |
| public final Mono | |
| public final < the output value type R> Mono | |
| public final Mono | |
| public final Flux | |
| public final Flux | Returns: aFlux that repeats on onComplete while the predicate matchesthe boolean to evaluate on onComplete. predicate)Repeatedly subscribe to the source if the predicate returns true after completion of the previous subscription. |
| public final Flux | |
| public final Flux | Returns: aFlux that repeats on onComplete while the predicate matches,
up to the specified number of repetitionsthe number of times to re-subscribe on complete (positive, or 0 for original sequence only) numRepeat, BooleanSupplier the boolean to evaluate on onComplete predicate)Repeatedly subscribe to the source if the predicate returns true after completion of the previous subscription. |
| public final Flux | |
| public final Mono | |
| public final Mono | repeatWhenEmpty(int
the maximum number of repeats (infinite if maxRepeat, Function<Flux<Long>, ? extends Publisher<?>> repeatFactory)Integer.MAX_VALUE)Repeatedly subscribe to this |
| public final Mono | |
| public final Mono | |
| public final Mono | |
| public static < the type of items emitted by each Publisher T> Mono | Returns: a Mono that emits a Boolean value that indicates whether the two sequences are the samethe first Publisher to compare source1, Publisher<? extends T> the second Publisher to compare source2)Returns a Mono that emits a Boolean value that indicates whether two Publisher sequences are the same by comparing the items emitted by each Publisher pairwise. |
| public static < the type of items emitted by each Publisher T> Mono | Returns: a Mono that emits a Boolean value that indicates whether the two Publisher two sequences are the same according to the specified functionthe first Publisher to compare source1, Publisher<? extends T> the second Publisher to compare source2, BiPredicate<? super T, ? super T> a function used to compare items emitted by each Publisher isEqual)Returns a Mono that emits a Boolean value that indicates whether two Publisher sequences are the same by comparing the items emitted by each Publisher pairwise based on the results of a specified equality function. |
| public static < the type of items emitted by each Publisher T> Mono | Returns: a Mono that emits a Boolean value that indicates whether the two Publisher two sequences are the same according to the specified functionthe first Publisher to compare source1, Publisher<? extends T> the second Publisher to compare source2, BiPredicate<? super T, ? super T> a function used to compare items emitted by each Publisher isEqual, int the number of items to prefetch from the first and second source Publisher prefetch)Returns a Mono that emits a Boolean value that indicates whether two Publisher sequences are the same by comparing the items emitted by each Publisher pairwise based on the results of a specified equality function. |
| public final Mono | |
| public final Mono | Returns: aMono with the single item or an error signalExpect exactly one item from this |
| public final Mono | Returns: aMono with an Optional containing the item, an empty optional or an error signalWrap the item produced by this |
| public final Disposable | |
| public final Disposable | |
| public final Disposable | |
| public final Disposable | subscribe(Consumer<? super T>
the consumer to invoke on each value consumer, Consumer<? super Throwable> the consumer to invoke on error signal errorConsumer, Runnable the consumer to invoke on complete signal completeConsumer)Subscribe |
| public final Disposable | subscribe(Consumer<? super T>
the consumer to invoke on each value consumer, Consumer<? super Throwable> the consumer to invoke on error signal errorConsumer, Runnable the consumer to invoke on complete signal completeConsumer, Consumer<? super Subscription> the consumer to invoke on subscribe signal, to be used
for the initial subscriptionConsumer)request, or null for max requestSubscribe |
| public final Disposable | subscribe(Consumer<? super T>
the consumer to invoke on each value consumer, Consumer<? super Throwable> the consumer to invoke on error signal errorConsumer, Runnable the consumer to invoke on complete signal completeConsumer, Context the initialContext)Context for the subscriptionSubscribe |
| public final void | subscribe(Subscriber<? super T>
the actual)Subscriber that will consume signals from this PublisherImplements org. Publisher to start streaming data.
|
| public abstract void | subscribe(CoreSubscriber<? super T>
the actual)Subscriber interested into the published sequenceRedeclares reactor. Publisher#subscribe(Subscriber) that will bypass
Hooks#onLastOperator(Function) pointcut.
|
| public final Mono | |
| public final < the reified type of the E extends SubscriberSubscriber for chaining | subscribeWith(E
the subscriber)Subscriber to subscribe withSubscribe the given |
| public final Mono | Returns: aMono falling back upon source completing without elementsthe alternate mono if this mono is empty alternate)Fallback to an alternative <img class="marble" src="doc-files/marbles/switchIfEmptyForMono.svg" alt=""> |
| public final Mono | |
| public final Mono | Returns: a newMono that will propagate the signals from the source unless
no signal is received for duration, in which case it completes.the maximum duration to wait for the source Mono to resolve. duration)Give this Mono a chance to resolve within a specified time frame but complete if it doesn't. |
| public final Mono | Returns: a newMono that will propagate the signals from the source unless
no signal is received for duration, in which case it completes.the maximum duration to wait for the source Mono to resolve. duration, Scheduler the timer)Scheduler on which to measure the duration.Give this Mono a chance to resolve within a specified time frame but complete if it doesn't. |
| public final Mono | takeUntilOther(Publisher<?>
a companion other)Publisher that shortcircuits the source with an
onComplete signal if it emits before the source emits.Give this Mono a chance to resolve before a companion |
| public final Mono | tap(Supplier<SignalListener<T>>
the simpleListenerGenerator)Supplier to create a new SignalListener on each subscriptionTap into Reactive Streams signals emitted or received by this |
| public final Mono | tap(Function<ContextView, SignalListener<T>>
the listenerGenerator)Function to create a new SignalListener on each subscriptionTap into Reactive Streams signals emitted or received by this |
| public final Mono | tap(SignalListenerFactory<T, ?>
the listenerFactory)SignalListenerFactory to create a new SignalListener on each subscriptionTap into Reactive Streams signals emitted or received by this |
| public final Mono | |
| public final < the element type of the supplied Mono V> Mono | |
| public final Mono | |
| public final < the element type of the supplied Publisher V> Flux | |
| public final < the element type of the supplied value V> Mono | Returns: a newMono that emits the supplied valuea value to emit after successful termination value)Let this |
| public final Mono | Returns: a timedMonoTimes this
|
| public final Mono | Returns: a timedMonoTimes this
|
| public final Mono | |
| public final Mono | |
| public final Mono | |
| public final Mono | timeout(Duration
the timeout before the onNext signal from this timeout, Mono<? extends T> Monothe fallback fallback, Scheduler Mono to subscribe when a timeout occursa time-capable timer)Scheduler instance to run onSwitch to a fallback |
| public final < the element type of the timeout Publisher U> Mono | timeout(Publisher<U> firstTimeout)
Signal a |
| public final < the element type of the timeout Publisher U> Mono | |
| public final Mono | |
| public final Mono | |
| public final CompletableFuture | Returns: aCompletableFutureTransform this |
| public String | |
| public final < the item type in the returned V> MonoMono | |
| public final < the item type in the returned V> MonoPublisher | |
| public final < the item type in the returned V> MonoPublisher | Returns: a newMonothe transformer)BiFunction to lazily map this Mono into a target Mono
instance upon subscription, with access to ContextViewDefer the given transformation to this |
| public static < emitted type T, resource type D> Mono | Returns: newMonoa resourceSupplier, Function<? super D, ? extends Mono<? extends T>> Callable that is called on subscribe to create the resourcea sourceSupplier, Consumer<? super D> Mono factory to create the Mono depending on the created resourceinvoked on completion to clean-up the resource resourceCleanup, boolean set to true to clean before any signal (including onNext) is passed downstream eager)Uses a resource, generated by a supplier for each individual Subscriber, while streaming the value from a Mono derived from the same resource and makes sure the resource is released if the sequence terminates or the Subscriber cancels. |
| public static < emitted type T, resource type D> Mono | Returns: newMonoa resourceSupplier, Function<? super D, ? extends Mono<? extends T>> Callable that is called on subscribe to create the resourcea sourceSupplier, Consumer<? super D> Mono factory to create the Mono depending on the created resourceinvoked on completion to clean-up the resource resourceCleanup)Uses a resource, generated by a supplier for each individual Subscriber, while streaming the value from a Mono derived from the same resource and makes sure the resource is released if the sequence terminates or the Subscriber cancels. |
| public static < the type of elements emitted by the resource closure, and thus the main sequence T, the type of the resource object D> Mono | Returns: a newMono built around a "transactional" resource, with deferred emission until the
asynchronous cleanup sequence completesa resourceSupplier, Function<? super D, ? extends Mono<? extends T>> Publisher that "generates" the resource,
subscribed for each subscription to the main sequencea factory to derive a resourceClosure, Function<? super D, ? extends Publisher<?>> Mono from the supplied resourcean asynchronous resource cleanup invoked when the resource
closure terminates (with onComplete, onError or cancel) asyncCleanup)Uses a resource, generated by a |
| public static < the type of elements emitted by the resource closure, and thus the main sequence T, the type of the resource object D> Mono | Returns: a newMono built around a "transactional" resource, with several
termination path triggering asynchronous cleanup sequencesa resourceSupplier, Function<? super D, ? extends Mono<? extends T>> Publisher that "generates" the resource,
subscribed for each subscription to the main sequencea factory to derive a resourceClosure, Function<? super D, ? extends Publisher<?>> Mono from the supplied resourcean asynchronous resource cleanup invoked if the resource closure terminates with onComplete asyncComplete, BiFunction<? super D, ? super Throwable, ? extends Publisher<?>> an asynchronous resource cleanup invoked if the resource closure terminates with onError.
The terminating error is provided to the asyncError, Function<? super D, ? extends Publisher<?>> BiFunctionan asynchronous resource cleanup invoked if the resource closure is cancelled.
When asyncCancel)null, the asyncComplete path is used instead.Uses a resource, generated by a |
| public static Mono | |
| public static Mono | |
| public static Mono | Returns: aMono.The sources to use. sources)Aggregate given publishers into a new Mono that will be fulfilled when all of the given sources have completed. |
| public static Mono | Returns: aMono.The sources to use. sources)Merge given publishers into a new Mono that will be fulfilled when all of the given sources have completed. |
| pack-priv static < input upstream type T> Mono | Returns: a wrappedMonothe source, boolean Publisher to wrap true to wrap publishers without assumption about their cardinality
(first Subscriber#onNext(Object) will cancel the source), false to behave like fromDirect(Publisher).Unchecked wrap of |
| public static < type of the value from p1 T1, type of the value from p2 T2> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, output value O> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, BiFunction<? super T1, ? super T2, ? extends O> Publisher to subscribe to.a combinator)BiFunction combinator function when both sources
completeMerge given monos into a new Mono that will be fulfilled when all of the given Monos have produced an item, aggregating their values as defined by the combinator function. |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4, type of the value from p5 T5> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4, Mono<? extends T5> Publisher to subscribe to.The fifth upstream p5)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4, type of the value from p5 T5, type of the value from p6 T6> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4, Mono<? extends T5> Publisher to subscribe to.The fifth upstream p5, Mono<? extends T6> Publisher to subscribe to.The sixth upstream p6)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4, type of the value from p5 T5, type of the value from p6 T6, type of the value from p7 T7> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4, Mono<? extends T5> Publisher to subscribe to.The fifth upstream p5, Mono<? extends T6> Publisher to subscribe to.The sixth upstream p6, Mono<? extends T7> Publisher to subscribe to.The seventh upstream p7)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4, type of the value from p5 T5, type of the value from p6 T6, type of the value from p7 T7, type of the value from p8 T8> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4, Mono<? extends T5> Publisher to subscribe to.The fifth upstream p5, Mono<? extends T6> Publisher to subscribe to.The sixth upstream p6, Mono<? extends T7> Publisher to subscribe to.The seventh upstream p7, Mono<? extends T8> Publisher to subscribe to.The eight upstream p8)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < the combined result R> Mono | Returns: aMono.The monos to use. monos, Function<? super Object[], ? extends R> the function to transform the combined array into an arbitrary
object. combinator)Aggregate given monos into a new Mono that will be fulfilled when all of the given Monos have produced an item, aggregating their values according to the provided combinator function. |
| public static < the combined result R> Mono | Returns: aMono.the function to transform the combined array into an arbitrary
object. combinator, Mono<?>... The monos to use. monos)Aggregate given monos into a new Mono that will be fulfilled when all of the given Monos have produced an item, aggregating their values according to the provided combinator function. |
| public static < type of the value from p1 T1, type of the value from p2 T2> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Mono Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4, type of the value from p5 T5> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4, Mono<? extends T5> Publisher to subscribe to.The fifth upstream p5)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4, type of the value from p5 T5, type of the value from p6 T6> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4, Mono<? extends T5> Publisher to subscribe to.The fifth upstream p5, Mono<? extends T6> Publisher to subscribe to.The sixth upstream p6)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4, type of the value from p5 T5, type of the value from p6 T6, type of the value from p7 T7> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4, Mono<? extends T5> Publisher to subscribe to.The fifth upstream p5, Mono<? extends T6> Publisher to subscribe to.The sixth upstream p6, Mono<? extends T7> Publisher to subscribe to.The seventh upstream p7)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < type of the value from p1 T1, type of the value from p2 T2, type of the value from p3 T3, type of the value from p4 T4, type of the value from p5 T5, type of the value from p6 T6, type of the value from p7 T7, type of the value from p8 T8> Mono | Returns: aMono.The first upstream p1, Mono<? extends T2> Publisher to subscribe to.The second upstream p2, Mono<? extends T3> Publisher to subscribe to.The third upstream p3, Mono<? extends T4> Publisher to subscribe to.The fourth upstream p4, Mono<? extends T5> Publisher to subscribe to.The fifth upstream p5, Mono<? extends T6> Publisher to subscribe to.The sixth upstream p6, Mono<? extends T7> Publisher to subscribe to.The seventh upstream p7, Mono<? extends T8> Publisher to subscribe to.The eight upstream p8)Publisher to subscribe to.Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a |
| public static < the combined result R> Mono | Returns: aMono.The monos to use. monos, Function<? super Object[], ? extends R> the function to transform the combined array into an arbitrary
object. combinator)Aggregate given monos into a new Mono that will be fulfilled when all of the given Monos have produced an item. |
| public static < the combined result R> Mono | Returns: a combinedMono.the function to transform the combined array into an arbitrary
object. combinator, Mono<?>... The monos to use. monos)Merge given monos into a new Mono that will be fulfilled when all of the given Monos have produced an item, aggregating their values according to the provided combinator function and delaying errors. |
| public final < the element type of the other Mono instance T2> Mono | |
| public final < the element type of the other Mono instance T2, the element type of the combination O> Mono | Returns: a new combined Monothe rightGenerator, BiFunction<T, T2, O> Function to generate a Mono to combine witha combinator)BiFunction combinator function when both sources completeWait for the result from this mono, use it to create a second mono via the
provided |
| public final < the element type of the other Mono instance T2> Mono | |
| public final < the element type of the other Mono instance T2, the element type of the combination O> Mono | Returns: a new combined Monothe other, BiFunction<? super T, ? super T2, ? extends O> Mono to combine witha combinator)BiFunction combinator function when both sources
completeCombine the result from this mono and another into an arbitrary |