object Mono
- Alphabetic
- By Inheritance
- Mono
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[T](javaMono: publisher.Mono[T]): Mono[T]
This function is used as bridge to create scala-wrapper of Mono based on existing Java Mono
This function is used as bridge to create scala-wrapper of Mono based on existing Java Mono
- T
The value type that will be emitted by this mono
- javaMono
The underlying Java Mono
- returns
Wrapper of Java Mono
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def create[T](callback: (MonoSink[T]) ⇒ Unit): Mono[T]
- def defer[T](supplier: () ⇒ Mono[T]): Mono[T]
-
def
delay(duration: Duration, timer: Scheduler): Mono[Long]
Create a Mono which delays an onNext signal by a given
durationand completes.Create a Mono which delays an onNext signal by a given
durationand completes. If the demand cannot be produced in time, an onError will be signalled instead.
- duration
the Duration of the delay
- timer
a time-capable Scheduler instance to run on
- returns
a new Mono
-
def
delay(duration: Duration): Mono[Long]
Create a Mono which delays an onNext signal of
durationof given unit and complete on the global timer.Create a Mono which delays an onNext signal of
durationof given unit and complete on the global timer. If the demand cannot be produced in time, an onError will be signalled instead. The delay is introduced through the parallel default Scheduler.
- duration
the duration of the delay
- returns
a new Mono
-
def
empty[T]: Mono[T]
Create a Mono that completes without emitting any item.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error[T](error: Throwable): Mono[T]
Create a Mono that completes with the specified error immediately after onSubscribe.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
first[T](monos: Iterable[_ <: Mono[_ <: T]]): Mono[T]
Pick the first result coming from any of the given monos and populate a new
Mono.Pick the first result coming from any of the given monos and populate a new
Mono.
- T
The type of the function result.
- monos
The monos to use.
- returns
a Mono.
-
def
first[T](monos: Mono[_ <: T]*): Mono[T]
Pick the first result coming from any of the given monos and populate a new
Mono.Pick the first result coming from any of the given monos and populate a new
Mono.
- T
The type of the function result.
- monos
The deferred monos to use.
- returns
a Mono.
-
def
from[T](source: Publisher[_ <: T]): Mono[T]
Expose the specified Publisher with the Mono API, and ensure it will emit 0 or 1 item.
Expose the specified Publisher with the Mono API, and ensure it will emit 0 or 1 item. The source emitter will be cancelled on the first
onNext.
- T
the source type
- source
the { @link Publisher} source
- returns
the next item emitted as a { @link Mono}
-
def
fromCallable[T](supplier: Callable[T]): Mono[T]
Create a Mono producing the value for the Mono using the given supplier.
-
def
fromDirect[I](source: Publisher[_ <: I]): Mono[I]
Unchecked cardinality conversion of Publisher as Mono, supporting reactor.core.Fuseable sources.
-
def
fromFuture[T](future: Future[T])(implicit executionContext: ExecutionContext): Mono[T]
Create a Mono producing the value for the Mono using the given Future.
-
def
fromRunnable(runnable: Runnable): Mono[Unit]
Create a Mono only producing a completion signal after using the given runnable.
-
def
fromSupplier[T](supplier: () ⇒ T): Mono[T]
Create a Mono producing the value for the Mono using the given supplier.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
ignoreElements[T](source: Publisher[T]): Mono[T]
Create a new Mono that ignores onNext (dropping them) and only react on Completion signal.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
just[T](data: T): Mono[T]
Create a new Mono that emits the specified item.
-
def
justOrEmpty[T](data: T): Mono[T]
Create a new Mono that emits the specified item if non null otherwise only emits onComplete.
-
def
justOrEmpty[T](data: Option[_ <: T]): Mono[T]
Create a new Mono that emits the specified item if Option.isDefined otherwise only emits onComplete.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
never[T]: Mono[T]
Return a Mono that will never signal any data, error or completion signal.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
sequenceEqual[T](source1: Publisher[_ <: T], source2: Publisher[_ <: T], isEqual: (T, T) ⇒ Boolean, bufferSize: Int): Mono[Boolean]
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.
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.
- T
the type of items emitted by each Publisher
- source1
the first Publisher to compare
- source2
the second Publisher to compare
- isEqual
a function used to compare items emitted by each Publisher
- bufferSize
the number of items to prefetch from the first and second source Publisher
- returns
a Mono that emits a Boolean value that indicates whether the two Publisher two sequences are the same according to the specified function
-
def
sequenceEqual[T](source1: Publisher[_ <: T], source2: Publisher[_ <: T], isEqual: (T, T) ⇒ Boolean): Mono[Boolean]
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.
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.
- T
the type of items emitted by each Publisher
- source1
the first Publisher to compare
- source2
the second Publisher to compare
- isEqual
a function used to compare items emitted by each Publisher
- returns
a Mono that emits a Boolean value that indicates whether the two sequences are the same
-
def
sequenceEqual[T](source1: Publisher[_ <: T], source2: Publisher[_ <: T]): Mono[Boolean]
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.
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.
- T
the type of items emitted by each Publisher
- source1
the first Publisher to compare
- source2
the second Publisher to compare
- returns
a Mono that emits a Boolean value that indicates whether the two sequences are the same
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
using[T, D](resourceSupplier: () ⇒ D, sourceSupplier: (D) ⇒ Mono[_ <: T], resourceCleanup: (D) ⇒ Unit): Mono[T]
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.
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.
Eager resource cleanup happens just before the source termination and exceptions raised by the cleanup Consumer may override the terminal even.
-
def
using[T, D](resourceSupplier: () ⇒ D, sourceSupplier: Function1[D, _ <: Mono[_ <: T]], resourceCleanup: (D) ⇒ Unit, eager: Boolean): Mono[T]
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.
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.
- Eager resource cleanup happens just before the source termination and exceptions raised by the cleanup Consumer may override the terminal even.
- Non-eager cleanup will drop any exception.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
when(sources: Publisher[Unit] with MapablePublisher[Unit]*): Mono[Unit]
Aggregate given publishers into a new
Monothat will be fulfilled when all of the givensourceshave been fulfilled. -
def
when(sources: Iterable[_ <: Publisher[Unit] with MapablePublisher[Unit]]): Mono[Unit]
Aggregate given void publishers into a new a
Monothat will be fulfilled when all of the givenMonoshave been fulfilled.Aggregate given void publishers into a new a
Monothat will be fulfilled when all of the givenMonoshave been fulfilled. If any Mono terminates without value, the returned sequence will be terminated immediately and pending results cancelled.
- sources
The sources to use.
- returns
a Mono.
-
def
whenDelayError[R](combinator: (Array[Any]) ⇒ R, monos: Mono[Any]*): Mono[R]
Aggregate given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values according to the provided combinator function.Aggregate given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values according to the provided combinator function. If any Mono terminates without value, the returned sequence will be terminated immediately and pending results cancelled.
- R
the combined result
- combinator
the function to transform the combined array into an arbitrary object.
- monos
The monos to use.
- returns
a Mono.
-
def
whenDelayError(sources: Publisher[Unit] with MapablePublisher[Unit]*): Mono[Unit]
Merge given void publishers into a new a
Monothat will be fulfilled when all of the givenMonoshave been fulfilled.Merge given void publishers into a new a
Monothat will be fulfilled when all of the givenMonoshave been fulfilled.
- sources
The sources to use.
- returns
a Mono.
-
def
whenDelayError(sources: Iterable[_ <: Publisher[Unit] with MapablePublisher[Unit]]): Mono[Unit]
Aggregate given void publishers into a new a
Monothat will be fulfilled when all of the givensourceshave been fulfilled.Aggregate given void publishers into a new a
Monothat will be fulfilled when all of the givensourceshave been fulfilled. If any Publisher terminates without value, the returned sequence will be terminated immediately and pending results cancelled. If several Publishers error, the exceptions are combined (suppressed into a combining exception).
- sources
The sources to use.
- returns
a Mono.
-
def
zip[R](combinator: (Array[AnyRef]) ⇒ R, monos: Mono[_]*): Mono[R]
Aggregate given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values according to the provided combinator function.Aggregate given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values according to the provided combinator function. An error will cause pending results to be cancelled and immediate error emission to the returned Mono.
- R
the combined result
- combinator
the function to transform the combined array into an arbitrary object.
- monos
The monos to use.
- returns
a Mono.
-
def
zip[R](monos: Iterable[_ <: Mono[_]], combinator: (Array[AnyRef]) ⇒ R): Mono[R]
Aggregate given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values according to the provided combinator function.Aggregate given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values according to the provided combinator function. If any Mono terminates without value, the returned sequence will be terminated immediately and pending results cancelled.
- R
the combined result
- monos
The monos to use.
- combinator
the function to transform the combined array into an arbitrary object.
- returns
a Mono.
-
def
zipDelayError[R](monos: Iterable[_ <: Mono[_]], combinator: Function1[Array[AnyRef], _ <: R]): Mono[R]
Aggregate given monos into a new a
Monothat will be fulfilled when all of the givenMonoshave been fulfilled.Aggregate given monos into a new a
Monothat will be fulfilled when all of the givenMonoshave been fulfilled. If any Mono terminates without value, the returned sequence will be terminated immediately and pending results cancelled. If several Monos error, the exceptions are combined (suppressed into a combining exception).
- R
the combined result
- monos
The monos to use.
- combinator
the function to transform the combined array into an arbitrary object.
- returns
a Mono.
-
def
zipDelayError[T1, T2, T3, T4, T5, T6](p1: Mono[_ <: T1], p2: Mono[_ <: T2], p3: Mono[_ <: T3], p4: Mono[_ <: T4], p5: Mono[_ <: T5], p6: Mono[_ <: T6]): Mono[(T1, T2, T3, T4, T5, T6)]
Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple6 and delaying errors.Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple6 and delaying errors. If several Monos error, the two exceptions are combined (as suppressed exceptions on a root exception).
- T1
type of the value from source1
- T2
type of the value from source2
- T3
type of the value from source3
- T4
type of the value from source4
- T5
type of the value from source5
- T6
type of the value from source6
- p1
The first upstream Publisher to subscribe to.
- p2
The second upstream Publisher to subscribe to.
- p3
The third upstream Publisher to subscribe to.
- p4
The fourth upstream Publisher to subscribe to.
- p5
The fifth upstream Publisher to subscribe to.
- p6
The sixth upstream Publisher to subscribe to.
- returns
a Mono.
-
def
zipDelayError[T1, T2, T3, T4, T5](p1: Mono[_ <: T1], p2: Mono[_ <: T2], p3: Mono[_ <: T3], p4: Mono[_ <: T4], p5: Mono[_ <: T5]): Mono[(T1, T2, T3, T4, T5)]
Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple5 and delaying errors.Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple5 and delaying errors. If several Monos error, the two exceptions are combined (as suppressed exceptions on a root exception).
- T1
type of the value from source1
- T2
type of the value from source2
- T3
type of the value from source3
- T4
type of the value from source4
- T5
type of the value from source5
- p1
The first upstream Publisher to subscribe to.
- p2
The second upstream Publisher to subscribe to.
- p3
The third upstream Publisher to subscribe to.
- p4
The fourth upstream Publisher to subscribe to.
- p5
The fifth upstream Publisher to subscribe to.
- returns
a Mono.
-
def
zipDelayError[T1, T2, T3, T4](p1: Mono[_ <: T1], p2: Mono[_ <: T2], p3: Mono[_ <: T3], p4: Mono[_ <: T4]): Mono[(T1, T2, T3, T4)]
Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple4 and delaying errors.Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple4 and delaying errors. If several Monos error, the two exceptions are combined (as suppressed exceptions on a root exception).
- T1
type of the value from source1
- T2
type of the value from source2
- T3
type of the value from source3
- T4
type of the value from source4
- p1
The first upstream Publisher to subscribe to.
- p2
The second upstream Publisher to subscribe to.
- p3
The third upstream Publisher to subscribe to.
- p4
The fourth upstream Publisher to subscribe to.
- returns
a Mono.
-
def
zipDelayError[T1, T2, T3](p1: Mono[_ <: T1], p2: Mono[_ <: T2], p3: Mono[_ <: T3]): Mono[(T1, T2, T3)]
Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple3 and delaying errors.Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple3 and delaying errors. If several Monos error, the two exceptions are combined (as suppressed exceptions on a root exception).
- T1
type of the value from source1
- T2
type of the value from source2
- T3
type of the value from source3
- p1
The first upstream Publisher to subscribe to.
- p2
The second upstream Publisher to subscribe to.
- p3
The third upstream Publisher to subscribe to.
- returns
a Mono.
-
def
zipDelayError[T1, T2](p1: Mono[_ <: T1], p2: Mono[_ <: T2]): Mono[(T1, T2)]
Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple2 and delaying errors.Merge given monos into a new
Monothat will be fulfilled when all of the givenMonoshave been fulfilled, aggregating their values into a Tuple2 and delaying errors. If both Monos error, the two exceptions are combined (as suppressed exceptions on a root exception).
- T1
type of the value from source1
- T2
type of the value from source2
- p1
The first upstream { @link Publisher} to subscribe to.
- p2
The second upstream { @link Publisher} to subscribe to.
- returns
a Mono.
-
def
zipDelayError[R](combinator: (Array[Any]) ⇒ R, monos: Mono[Any]*): Mono[R]
Merge given monos into a new a
Monothat will be fulfilled when all of the givenMonoshave been fulfilled.Merge given monos into a new a
Monothat will be fulfilled when all of the givenMonoshave been fulfilled.
- R
the combined result
- combinator
the function to transform the combined array into an arbitrary object.
- monos
The monos to use.
- returns
a combined Mono.









