Uses of Interface
io.smallrye.mutiny.Uni
-
-
Uses of Uni in io.smallrye.mutiny
Methods in io.smallrye.mutiny that return Uni Modifier and Type Method Description default Uni<ItemWithContext<T>>
Uni. attachContext()
Materialize the context by attaching it to items using theItemWithContext
wrapper class.default Uni<T>
Uni. call(java.util.function.Function<? super T,Uni<?>> function)
Produces a newUni
invoking the given @{code action} when theitem
event is received.default Uni<T>
Uni. call(java.util.function.Supplier<Uni<?>> supplier)
Produces a newUni
invoking the given @{code action} when theitem
event is received, but ignoring it.default <O> Uni<O>
Uni. chain(java.util.function.Function<? super T,Uni<? extends O>> mapper)
Once the observedUni
emits an item, execute the givenmapper
.default <O> Uni<O>
Uni. chain(java.util.function.Supplier<Uni<? extends O>> supplier)
Once the observedUni
emits an item, execute the givensupplier
.Uni<T>
Uni. emitOn(java.util.concurrent.Executor executor)
Produces a newUni
invoking theUniSubscriber.onItem(Object)
andUniSubscriber.onFailure(Throwable)
on the suppliedExecutor
.default Uni<T>
Uni. eventually(java.lang.Runnable action)
Execute an action after an item or a failure has been emitted.default <O> Uni<T>
Uni. eventually(java.util.function.Supplier<Uni<? extends O>> supplier)
default <O> Uni<O>
Uni. flatMap(java.util.function.Function<? super T,Uni<? extends O>> mapper)
Transforms the received item asynchronously, forwarding the events emitted by anotherUni
produced by the givenmapper
.default Uni<T>
Uni. invoke(java.lang.Runnable callback)
Produces a newUni
invoking the given callback when theitem
event is fired, but ignoring it.default Uni<T>
Uni. invoke(java.util.function.Consumer<? super T> callback)
Produces a newUni
invoking the given callback when theitem
event is fired.Uni<T>
Uni. log()
Log events (onSubscribe, onItem, ...) as they come from the upstream or the subscriber, and derives the identifier from the upstream operator class "simple name".Uni<T>
Uni. log(java.lang.String identifier)
Log events (onSubscribe, onItem, ...) as they come from the upstream or the subscriber.default <O> Uni<O>
Uni. map(java.util.function.Function<? super T,? extends O> mapper)
Transforms the item (potentially null) emitted by thisUni
by applying a (synchronous) function to it.default <R> Uni<R>
Uni. plug(java.util.function.Function<Uni<T>,Uni<R>> operatorProvider)
Plug a user-defined operator that does not belong to the existing Mutiny API.default Uni<T>
Uni. replaceIfNullWith(java.util.function.Supplier<T> supplier)
default Uni<T>
Uni. replaceIfNullWith(T value)
When thisUni
emitsnull
, replace with the provided value.default <O> Uni<O>
Uni. replaceWith(Uni<O> uni)
default <O> Uni<O>
Uni. replaceWith(java.util.function.Supplier<O> supplier)
Ignore the item emitted by thisUni
and replace it with another value using aSupplier
.default <O> Uni<O>
Uni. replaceWith(O item)
Ignore the item emitted by thisUni
and replace it with another value.default Uni<T>
Uni. replaceWithNull()
Ignore the item emitted by thisUni
and replace it withnull
.default Uni<java.lang.Void>
Uni. replaceWithVoid()
Uni<T>
Uni. runSubscriptionOn(java.util.concurrent.Executor executor)
Uni<T>
Multi. toUni()
default <R> Uni<R>
Uni. withContext(java.util.function.BiFunction<Uni<T>,Context,Uni<R>> builder)
Materialize the subscriberContext
for a sub-pipeline.Methods in io.smallrye.mutiny with parameters of type Uni Modifier and Type Method Description default <O> Uni<O>
Uni. replaceWith(Uni<O> uni)
Method parameters in io.smallrye.mutiny with type arguments of type Uni Modifier and Type Method Description default Multi<T>
Multi. call(java.util.function.Function<? super T,Uni<?>> action)
Produces a newMulti
invoking the given @{code action} when anitem
event is received.default Multi<T>
Multi. call(java.util.function.Supplier<Uni<?>> action)
Produces a newMulti
invoking the given @{code action} when anitem
event is received, but ignoring it in the callback.default Uni<T>
Uni. call(java.util.function.Function<? super T,Uni<?>> function)
Produces a newUni
invoking the given @{code action} when theitem
event is received.default Uni<T>
Uni. call(java.util.function.Supplier<Uni<?>> supplier)
Produces a newUni
invoking the given @{code action} when theitem
event is received, but ignoring it.default <O> Uni<O>
Uni. chain(java.util.function.Function<? super T,Uni<? extends O>> mapper)
Once the observedUni
emits an item, execute the givenmapper
.default <O> Uni<O>
Uni. chain(java.util.function.Supplier<Uni<? extends O>> supplier)
Once the observedUni
emits an item, execute the givensupplier
.default <O> Uni<T>
Uni. eventually(java.util.function.Supplier<Uni<? extends O>> supplier)
default <O> Uni<O>
Uni. flatMap(java.util.function.Function<? super T,Uni<? extends O>> mapper)
Transforms the received item asynchronously, forwarding the events emitted by anotherUni
produced by the givenmapper
.default <R> Uni<R>
Uni. plug(java.util.function.Function<Uni<T>,Uni<R>> operatorProvider)
Plug a user-defined operator that does not belong to the existing Mutiny API.default <R> Uni<R>
Uni. plug(java.util.function.Function<Uni<T>,Uni<R>> operatorProvider)
Plug a user-defined operator that does not belong to the existing Mutiny API.default <O> O
Uni. stage(java.util.function.Function<Uni<T>,O> stage)
Allows structuring the pipeline by creating a logic separation:default <R> Uni<R>
Uni. withContext(java.util.function.BiFunction<Uni<T>,Context,Uni<R>> builder)
Materialize the subscriberContext
for a sub-pipeline.default <R> Uni<R>
Uni. withContext(java.util.function.BiFunction<Uni<T>,Context,Uni<R>> builder)
Materialize the subscriberContext
for a sub-pipeline. -
Uses of Uni in io.smallrye.mutiny.converters
Methods in io.smallrye.mutiny.converters that return Uni Modifier and Type Method Description Uni<T>
UniConverter. from(I instance)
Convert from type toUni
. -
Uses of Uni in io.smallrye.mutiny.converters.uni
Methods in io.smallrye.mutiny.converters.uni that return Uni Modifier and Type Method Description Uni<T>
FromCompletionStage. from(java.util.concurrent.CompletionStage<T> instance)
Methods in io.smallrye.mutiny.converters.uni with parameters of type Uni Modifier and Type Method Description java.util.concurrent.CompletableFuture<T>
ToCompletableFuture. apply(Uni<T> uni)
java.util.concurrent.CompletionStage<T>
ToCompletionStage. apply(Uni<T> uni)
org.reactivestreams.Publisher<T>
ToPublisher. apply(Uni<T> uni)
Constructors in io.smallrye.mutiny.converters.uni with parameters of type Uni Constructor Description UniToMultiPublisher(Uni<T> uni)
-
Uses of Uni in io.smallrye.mutiny.groups
Methods in io.smallrye.mutiny.groups that return Uni Modifier and Type Method Description Uni<java.util.List<T>>
UniJoin.JoinAllStrategy. andCollectFailures()
Wait for allUni
references to terminate, and collect all failures in aCompositeException
.Uni<T>
UniOnItemIgnore. andContinueWith(java.util.function.Supplier<? extends T> supplier)
Ignores the item fired by the currentUni
, and continue with the value produced by the given supplier.Uni<T>
UniOnItemIgnore. andContinueWith(T fallback)
Ignores the item fired by the currentUni
, and continue with a default value.Uni<java.lang.Void>
UniOnItemIgnore. andContinueWithNull()
Ignores the item fired by the currentUni
, and continue with anull
item.Uni<T>
UniOnItemIgnore. andFail()
LikeUniOnItemIgnore.andFail(Throwable)
but using anException
.Uni<T>
UniOnItemIgnore. andFail(java.lang.Throwable failure)
Ignores the item fired by the currentUni
and fails with the passed failure.Uni<T>
UniOnItemIgnore. andFail(java.util.function.Supplier<java.lang.Throwable> supplier)
Ignores the item fired by the currentUni
, and fails with a failure produced using the givenSupplier
.Uni<java.util.List<T>>
UniJoin.JoinAllStrategy. andFailFast()
<O> Uni<O>
UniOnItemIgnore. andSwitchTo(Uni<? extends O> other)
<O> Uni<O>
UniOnItemIgnore. andSwitchTo(java.util.function.Supplier<Uni<? extends O>> supplier)
Uni<java.util.List<T>>
MultiCollect. asList()
<K> Uni<java.util.Map<K,T>>
MultiCollect. asMap(java.util.function.Function<? super T,? extends K> keyMapper)
<K,V>
Uni<java.util.Map<K,V>>MultiCollect. asMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)
<K> Uni<java.util.Map<K,java.util.Collection<T>>>
MultiCollect. asMultiMap(java.util.function.Function<? super T,? extends K> keyMapper)
<K,V>
Uni<java.util.Map<K,java.util.Collection<V>>>MultiCollect. asMultiMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)
Uni<Tuple2<T1,T2>>
UniAndGroup2. asTuple()
Uni<Tuple3<T1,T2,T3>>
UniAndGroup3. asTuple()
Uni<Tuple4<T1,T2,T3,T4>>
UniAndGroup4. asTuple()
Uni<Tuple5<T1,T2,T3,T4,T5>>
UniAndGroup5. asTuple()
Uni<Tuple6<T1,T2,T3,T4,T5,T6>>
UniAndGroup6. asTuple()
Uni<Tuple7<T1,T2,T3,T4,T5,T6,T7>>
UniAndGroup7. asTuple()
Uni<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>>
UniAndGroup8. asTuple()
Uni<Tuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9>>
UniAndGroup9. asTuple()
Uni<T>
UniMemoize. atLeast(java.time.Duration duration)
Memoize the received item or failure for a duration after the upstream subscription has been received.Uni<T>
UniRetry. atMost(long numberOfAttempts)
Uni<T>
UniOnItemDelay. by(java.time.Duration duration)
Delays the item emission by a specific duration.Uni<T>
UniOnCancel. call(java.util.function.Supplier<Uni<?>> supplier)
Attaches an action executed when the subscription is cancelled.Uni<T>
UniOnFailure. call(java.util.function.Function<java.lang.Throwable,Uni<?>> action)
Uni<T>
UniOnFailure. call(java.util.function.Supplier<Uni<?>> supplier)
Uni<T>
UniOnItem. call(java.util.function.Function<? super T,Uni<?>> action)
Produces a newUni
invoking the given @{code action} when theitem
event is received.Uni<T>
UniOnItem. call(java.util.function.Supplier<Uni<?>> action)
Produces a newUni
invoking the given @{code action} when theitem
event is received, ignoring it.Uni<T>
UniOnItemOrFailure. call(java.util.function.BiFunction<? super T,java.lang.Throwable,Uni<?>> callback)
Uni<T>
UniOnItemOrFailure. call(java.util.function.Supplier<Uni<?>> callback)
Uni<T>
UniOnNotNull. call(java.util.function.Function<? super T,Uni<?>> action)
Produces a newUni
invoking the given @{code action} when theitem
event is received.Uni<T>
UniOnNotNull. call(java.util.function.Supplier<Uni<?>> action)
Produces a newUni
invoking the given @{code action} when theitem
event is received.Uni<T>
UniOnSubscribe. call(java.util.function.Function<? super UniSubscription,Uni<?>> action)
Produces a newUni
invoking the given @{code action} when thesubscription
event is received.Uni<T>
UniOnSubscribe. call(java.util.function.Supplier<Uni<?>> action)
Produces a newUni
invoking the given @{code action} when thesubscription
event is received.Uni<T>
UniOnTerminate. call(Functions.Function3<? super T,java.lang.Throwable,java.lang.Boolean,Uni<?>> mapper)
Attaches an action that is executed when theUni
emits an item or a failure or when the subscriber cancels the subscription.Uni<T>
UniOnTerminate. call(java.util.function.Supplier<Uni<?>> supplier)
Attaches an action that is executed when theUni
emits an item or a failure or when the subscriber cancels the subscription.<O> Uni<O>
UniOnItem. castTo(java.lang.Class<O> target)
Produces anUni
emitting an item based on the upstream item but casted to the target class.<O> Uni<O>
UniAndGroup2. combinedWith(java.util.function.BiFunction<T1,T2,O> combinator)
Creates the resultingUni
.<O> Uni<O>
UniAndGroup3. combinedWith(Functions.Function3<T1,T2,T3,O> combinator)
<O> Uni<O>
UniAndGroup4. combinedWith(Functions.Function4<T1,T2,T3,T4,O> combinator)
<O> Uni<O>
UniAndGroup5. combinedWith(Functions.Function5<T1,T2,T3,T4,T5,O> combinator)
<O> Uni<O>
UniAndGroup6. combinedWith(Functions.Function6<T1,T2,T3,T4,T5,T6,O> combinator)
<O> Uni<O>
UniAndGroup7. combinedWith(Functions.Function7<T1,T2,T3,T4,T5,T6,T7,O> combinator)
<O> Uni<O>
UniAndGroup8. combinedWith(Functions.Function8<T1,T2,T3,T4,T5,T6,T7,T8,O> combinator)
<O> Uni<O>
UniAndGroup9. combinedWith(Functions.Function9<T1,T2,T3,T4,T5,T6,T7,T8,T9,O> combinator)
<O,I>
Uni<O>UniAndGroupIterable. combinedWith(java.lang.Class<I> superType, java.util.function.Function<java.util.List<I>,O> function)
<O> Uni<O>
UniAndGroupIterable. combinedWith(java.util.function.Function<java.util.List<?>,O> function)
<T> Uni<T>
UniCreate. completionStage(java.util.concurrent.CompletionStage<? extends T> stage)
<T> Uni<T>
UniCreate. completionStage(java.util.function.Supplier<? extends java.util.concurrent.CompletionStage<? extends T>> supplier)
<T,S>
Uni<T>UniCreate. completionStage(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,? extends java.util.concurrent.CompletionStage<? extends T>> mapper)
<T> Uni<T>
UniCreate. context(java.util.function.Function<Context,Uni<? extends T>> mapper)
Uni<T>
UniOnNull. continueWith(java.util.function.Supplier<? extends T> supplier)
Provides a default item if the currentUni
firesnull
as item.Uni<T>
UniOnNull. continueWith(T fallback)
Provides a default item if the currentUni
firesnull
as item.<I,T>
Uni<T>UniCreate. converter(UniConverter<I,T> converter, I instance)
Creates a newUni
from the passed instance with the passed converter.<T> Uni<T>
UniCreate. deferred(java.util.function.Supplier<Uni<? extends T>> supplier)
<T,S>
Uni<T>UniCreate. deferred(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,Uni<? extends T>> mapper)
Uni<java.lang.Void>
UniAndGroupIterable. discardItems()
<T> Uni<T>
UniCreate. emitter(java.util.function.Consumer<UniEmitter<? super T>> consumer)
Creates aUni
deferring the logic to the given consumer.<T,S>
Uni<T>UniCreate. emitter(java.util.function.Supplier<S> stateSupplier, java.util.function.BiConsumer<S,UniEmitter<? super T>> consumer)
Creates aUni
deferring the logic to the given consumer.Uni<T>
UniRetry. expireAt(long expireAt)
Uni<T>
UniRetry. expireIn(long expireIn)
Uni<T>
UniOnNull. fail()
LikeUniOnNull.failWith(Throwable)
but using aNoSuchElementException
.Uni<T>
UniOnTimeout. fail()
<T> Uni<T>
UniCreate. failure(java.lang.Throwable failure)
Creates aUni
that emits afailure
event immediately after being subscribed to.<T> Uni<T>
UniCreate. failure(java.util.function.Supplier<java.lang.Throwable> supplier)
Creates aUni
that emits afailure
event produced using the passed supplier immediately after being subscribed to.Uni<T>
UniOnItem. failWith(java.util.function.Function<? super T,? extends java.lang.Throwable> mapper)
Uni<T>
UniOnItem. failWith(java.util.function.Supplier<? extends java.lang.Throwable> supplier)
Uni<T>
UniOnNotNull. failWith(java.lang.Throwable failure)
Uni<T>
UniOnNotNull. failWith(java.util.function.Supplier<? extends java.lang.Throwable> supplier)
Uni<T>
UniOnNull. failWith(java.lang.Throwable failure)
Uni<T>
UniOnNull. failWith(java.util.function.Supplier<? extends java.lang.Throwable> supplier)
Uni<T>
UniOnTimeout. failWith(java.lang.Throwable failure)
Uni<T>
UniOnTimeout. failWith(java.util.function.Supplier<? extends java.lang.Throwable> supplier)
Uni<T>
MultiCollect. first()
<T> Uni<T>
UniCreate. future(java.util.concurrent.Future<? extends T> future)
Creates aUni
from the givenFuture
.<T> Uni<T>
UniCreate. future(java.util.function.Supplier<java.util.concurrent.Future<? extends T>> supplier)
Creates aUni
from the givenFuture
.Uni<java.lang.Void>
MultiOnItem. ignoreAsUni()
Ignores the passed items.<X> Uni<X>
MultiCollect. in(java.util.function.Supplier<X> supplier, java.util.function.BiConsumer<X,T> accumulator)
Uni<T>
UniMemoize. indefinitely()
Memoize the received item or failure indefinitely.Uni<T>
UniRetry. indefinitely()
Uni<T>
UniOnCancel. invoke(java.lang.Runnable action)
Attaches an action executed when the subscription is cancelled.Uni<T>
UniOnFailure. invoke(java.lang.Runnable callback)
Uni<T>
UniOnFailure. invoke(java.util.function.Consumer<java.lang.Throwable> callback)
Uni<T>
UniOnItem. invoke(java.lang.Runnable callback)
Produces a newUni
invoking the given callback when theitem
event is fired, ignoring its value.Uni<T>
UniOnItem. invoke(java.util.function.Consumer<? super T> callback)
Produces a newUni
invoking the given callback when theitem
event is fired.Uni<T>
UniOnItemOrFailure. invoke(java.lang.Runnable callback)
Uni<T>
UniOnItemOrFailure. invoke(java.util.function.BiConsumer<? super T,java.lang.Throwable> callback)
Uni<T>
UniOnNotNull. invoke(java.lang.Runnable callback)
Produces a newUni
invoking the given callback when theitem
event is fired.Uni<T>
UniOnNotNull. invoke(java.util.function.Consumer<? super T> callback)
Produces a newUni
invoking the given callback when theitem
event is fired.Uni<T>
UniOnSubscribe. invoke(java.lang.Runnable callback)
Produces a newUni
invoking the given callback when thesubscription
is received.Uni<T>
UniOnSubscribe. invoke(java.util.function.Consumer<? super UniSubscription> callback)
Produces a newUni
invoking the given callback when thesubscription
is received.Uni<T>
UniOnTerminate. invoke(Functions.TriConsumer<T,java.lang.Throwable,java.lang.Boolean> consumer)
Attaches an action that is executed when theUni
emits an item or a failure or when the subscriber cancels the subscription.Uni<T>
UniOnTerminate. invoke(java.lang.Runnable action)
Attaches an action that is executed when theUni
emits an item or a failure or when the subscriber cancels the subscription.<T> Uni<T>
UniCreate. item(java.util.function.Supplier<? extends T> supplier)
Creates a newUni
that completes immediately after being subscribed to with the specified (potentiallynull
) value.<T,S>
Uni<T>UniCreate. item(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,? extends T> mapper)
Creates a newUni
that completes immediately after being subscribed to with the specified (potentiallynull
) value.<T> Uni<T>
UniCreate. item(T item)
Creates a newUni
that completes immediately after being subscribed to with the specified (potentiallynull
) item.Uni<T>
MultiCollect. last()
<T> Uni<T>
UniCreate. multi(Multi<T> multi)
<T> Uni<T>
UniCreate. nothing()
<T> Uni<T>
UniCreate. nullItem()
Creates a newUni
that completes with anull
item.<T> Uni<T>
UniAny. of(Uni<? super T>... unis)
LikeUniAny.of(Iterable)
but with an array ofUni
as parameter<T> Uni<T>
UniAny. of(java.lang.Iterable<? extends Uni<? super T>> iterable)
Creates aUni
forwarding the first event (item or failure).<T> Uni<T>
UniCreate. optional(java.util.function.Supplier<java.util.Optional<T>> supplier)
Creates a newUni
that completes immediately after being subscribed to with the item based on the value contained in the given optional ifOptional.isPresent()
ornull
otherwise.<T> Uni<T>
UniCreate. optional(java.util.Optional<T> optional)
Creates a newUni
that completes immediately after being subscribed to with the item based on the value contained in the given optional ifOptional.isPresent()
ornull
otherwise.<T> Uni<T>
UniCreate. publisher(org.reactivestreams.Publisher<? extends T> publisher)
Creates aUni
from the passedPublisher
.Uni<T>
UniOnFailure. recoverWithItem(java.util.function.Function<? super java.lang.Throwable,? extends T> function)
Recovers from the received failure (matching the predicate if set) by using a item generated by the given function.Uni<T>
UniOnFailure. recoverWithItem(java.util.function.Supplier<T> supplier)
Recovers from the received failure (matching the predicate if set) by using a item generated by the given supplier.Uni<T>
UniOnFailure. recoverWithItem(T fallback)
Recovers from the received failure (matching the predicate if set) by using a fallback item.Uni<T>
UniOnTimeout. recoverWithItem(java.util.function.Supplier<T> supplier)
Uni<T>
UniOnTimeout. recoverWithItem(T fallback)
Uni<T>
UniOnFailure. recoverWithNull()
Recovers from the received failure by ignoring it and emitting anull
item in the resultingUni
.Uni<T>
UniOnFailure. recoverWithUni(Uni<? extends T> fallback)
Recovers from the received failure (matching the predicate if set) with anotherUni
.Uni<T>
UniOnFailure. recoverWithUni(java.util.function.Function<? super java.lang.Throwable,Uni<? extends T>> function)
Recovers from the received failure (matching the predicate if set) with anotherUni
.Uni<T>
UniOnFailure. recoverWithUni(java.util.function.Supplier<Uni<? extends T>> supplier)
Recovers from the received failure (matching the predicate if set) with anotherUni
.Uni<T>
UniOnTimeout. recoverWithUni(Uni<? extends T> fallback)
Uni<T>
UniOnTimeout. recoverWithUni(java.util.function.Supplier<Uni<? extends T>> supplier)
Uni<T>
UniOnNull. switchTo(Uni<? extends T> other)
Uni<T>
UniOnNull. switchTo(java.util.function.Supplier<Uni<? extends T>> supplier)
Uni<T>
UniJoin.JoinFirstStrategy. toTerminate()
Forward the value or failure from the firstUni
to terminate.Uni<T>
UniOnFailure. transform(java.util.function.Function<? super java.lang.Throwable,? extends java.lang.Throwable> mapper)
<R> Uni<R>
UniOnItem. transform(java.util.function.Function<? super T,? extends R> mapper)
<R> Uni<R>
UniOnItemOrFailure. transform(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends R> mapper)
<R> Uni<R>
UniOnNotNull. transform(java.util.function.Function<? super T,? extends R> mapper)
<R> Uni<R>
UniOnItem. transformToUni(java.util.function.BiConsumer<? super T,UniEmitter<? super R>> consumer)
Transforms the received item asynchronously, forwarding the events emitted by anUniEmitter
provided to the given consumer.<R> Uni<R>
UniOnItem. transformToUni(java.util.function.Function<? super T,Uni<? extends R>> mapper)
Transforms the received item asynchronously, forwarding the events emitted by anotherUni
produced by the givenmapper
.<R> Uni<R>
UniOnItemOrFailure. transformToUni(Functions.TriConsumer<? super T,java.lang.Throwable,UniEmitter<? super R>> consumer)
Transforms the received item or failure asynchronously, forwarding the events emitted by theUniEmitter
provided to the given consumer.<R> Uni<R>
UniOnItemOrFailure. transformToUni(java.util.function.BiFunction<? super T,java.lang.Throwable,Uni<? extends R>> mapper)
Transforms the received item or failure asynchronously, forwarding the events emitted by anotherUni
produced by the givenmapper
.<R> Uni<R>
UniOnNotNull. transformToUni(java.util.function.BiConsumer<? super T,UniEmitter<? super R>> consumer)
Transforms the received item asynchronously, forwarding the events emitted anUniEmitter
consumes by the given consumer.<R> Uni<R>
UniOnNotNull. transformToUni(java.util.function.Function<? super T,Uni<? extends R>> mapper)
Transforms the received item asynchronously, forwarding the events emitted by anotherUni
produced by the givenmapper
.Uni<T>
UniOr. unis(Uni<T>... other)
Uni<T>
UniMemoize. until(java.util.function.BooleanSupplier invalidationGuard)
Memoize the received item or failure as long as the provided boolean supplier evaluates tofalse
.Uni<T>
UniOnItemDelay. until(java.util.function.Function<? super T,Uni<?>> function)
Delays the item emission until theUni
produced by the givenFunction
emits an item (potentiallynull
)Uni<T>
UniRetry. until(java.util.function.Predicate<? super java.lang.Throwable> predicate)
Uni<java.lang.Void>
UniCreate. voidItem()
Creates a newUni
that completes with anull
item.Uni<T>
UniRetry. when(java.util.function.Function<Multi<java.lang.Throwable>,? extends org.reactivestreams.Publisher<?>> whenStreamFactory)
<X,A>
Uni<X>MultiCollect. with(java.util.stream.Collector<? super T,A,? extends X> collector)
Creates aUni
emitting an item with the object computed by the givenCollector
.Uni<T>
UniJoin.JoinFirstStrategy. withItem()
Forward the value from the firstUni
to terminate with a value.Methods in io.smallrye.mutiny.groups with parameters of type Uni Modifier and Type Method Description UniJoin.Builder<T>
UniJoin.Builder. add(Uni<T> uni)
Add aUni
.<T> UniJoin.JoinAllStrategy<T>
UniJoin. all(Uni<T>... unis)
Join multipleUni
references and emit a list of values, this is a convenience delegate method forUniJoin.all(List)
.<O> Uni<O>
UniOnItemIgnore. andSwitchTo(Uni<? extends O> other)
<T> UniJoin.JoinFirstStrategy<T>
UniJoin. first(Uni<T>... unis)
Join multipleUni
and emit the result from the first one to emit a signal, or the first one with a value.<T> Uni<T>
UniAny. of(Uni<? super T>... unis)
LikeUniAny.of(Iterable)
but with an array ofUni
as parameterUni<T>
UniOnFailure. recoverWithUni(Uni<? extends T> fallback)
Recovers from the received failure (matching the predicate if set) with anotherUni
.Uni<T>
UniOnTimeout. recoverWithUni(Uni<? extends T> fallback)
Uni<T>
UniOnNull. switchTo(Uni<? extends T> other)
<T> Multi<T>
MultiCreate. uni(Uni<T> uni)
<T2> UniAndGroup2<T1,T2>
UniAndGroup. uni(Uni<? extends T2> other)
Combines the currentUni
with the given one.UniAndGroupIterable<T1>
UniAndGroup. unis(Uni<?>... unis)
Combines the currentUni
with the given ones.<T2,T3>
UniAndGroup3<T1,T2,T3>UniAndGroup. unis(Uni<? extends T2> u2, Uni<? extends T3> u3)
Combines the currentUni
with the given ones.<T2,T3,T4>
UniAndGroup4<T1,T2,T3,T4>UniAndGroup. unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4)
Combines the currentUni
with the given ones.<T2,T3,T4,T5>
UniAndGroup5<T1,T2,T3,T4,T5>UniAndGroup. unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5)
Combines the currentUni
with the given ones.<T2,T3,T4,T5,T6>
UniAndGroup6<T1,T2,T3,T4,T5,T6>UniAndGroup. unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6)
Combines the currentUni
with the given ones.<T2,T3,T4,T5,T6,T7>
UniAndGroup7<T1,T2,T3,T4,T5,T6,T7>UniAndGroup. unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6, Uni<? extends T7> u7)
Combines the currentUni
with the given ones.<T2,T3,T4,T5,T6,T7,T8>
UniAndGroup8<T1,T2,T3,T4,T5,T6,T7,T8>UniAndGroup. unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6, Uni<? extends T7> u7, Uni<? extends T8> u8)
Combines the currentUni
with the given ones.<T2,T3,T4,T5,T6,T7,T8,T9>
UniAndGroup9<T1,T2,T3,T4,T5,T6,T7,T8,T9>UniAndGroup. unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6, Uni<? extends T7> u7, Uni<? extends T8> u8, Uni<? extends T9> u9)
Combines the currentUni
with the given ones.Uni<T>
UniOr. unis(Uni<T>... other)
<O> UniAndGroupIterable<O>
UniZip. unis(Uni<?>... unis)
Combines severalunis
together.<T1,T2>
UniAndGroup2<T1,T2>UniZip. unis(Uni<? extends T1> u1, Uni<? extends T2> u2)
Combines twounis
together.<T1,T2,T3>
UniAndGroup3<T1,T2,T3>UniZip. unis(Uni<? extends T1> u1, Uni<? extends T2> u2, Uni<? extends T3> u3)
Combines the threeunis
together.<T1,T2,T3,T4>
UniAndGroup4<T1,T2,T3,T4>UniZip. unis(Uni<? extends T1> u1, Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4)
Combines fourunis
together.<T1,T2,T3,T4,T5>
UniAndGroup5<T1,T2,T3,T4,T5>UniZip. unis(Uni<? extends T1> u1, Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5)
Combines fiveunis
together.<T1,T2,T3,T4,T5,T6>
UniAndGroup6<T1,T2,T3,T4,T5,T6>UniZip. unis(Uni<? extends T1> u1, Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6)
Combines sixunis
together.<T1,T2,T3,T4,T5,T6,T7>
UniAndGroup7<T1,T2,T3,T4,T5,T6,T7>UniZip. unis(Uni<? extends T1> u1, Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6, Uni<? extends T7> u7)
Combines 7unis
together.<T1,T2,T3,T4,T5,T6,T7,T8>
UniAndGroup8<T1,T2,T3,T4,T5,T6,T7,T8>UniZip. unis(Uni<? extends T1> u1, Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6, Uni<? extends T7> u7, Uni<? extends T8> u8)
Combines 8unis
together.<T1,T2,T3,T4,T5,T6,T7,T8,T9>
UniAndGroup9<T1,T2,T3,T4,T5,T6,T7,T8,T9>UniZip. unis(Uni<? extends T1> u1, Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6, Uni<? extends T7> u7, Uni<? extends T8> u8, Uni<? extends T9> u9)
Combines 9unis
together.Method parameters in io.smallrye.mutiny.groups with type arguments of type Uni Modifier and Type Method Description <T> UniJoin.JoinAllStrategy<T>
UniJoin. all(java.util.List<Uni<T>> unis)
Join multipleUni
references and emit a list of values.<O> Uni<O>
UniOnItemIgnore. andSwitchTo(java.util.function.Supplier<Uni<? extends O>> supplier)
Multi<T>
MultiOnCancel. call(java.util.function.Supplier<Uni<?>> supplier)
Attaches an action executed when the subscription is cancelled.Multi<T>
MultiOnCompletion. call(java.util.function.Supplier<Uni<?>> supplier)
Multi<T>
MultiOnFailure. call(java.util.function.Function<java.lang.Throwable,Uni<?>> action)
Produces a newMulti
invoking the given @{code action} when afailure
event is received.Multi<T>
MultiOnFailure. call(java.util.function.Supplier<Uni<?>> action)
Produces a newMulti
invoking the given @{code action} when afailure
event is received.Multi<T>
MultiOnItem. call(java.util.function.Function<? super T,Uni<?>> action)
Produces a newMulti
invoking the given @{code action} when anitem
event is received.Multi<T>
MultiOnItem. call(java.util.function.Supplier<Uni<?>> action)
Produces a newMulti
invoking the given @{code action} when anitem
event is received, but ignoring it in the callback.Multi<T>
MultiOnRequest. call(java.util.function.LongFunction<Uni<?>> mapper)
Action when items are being requested.Multi<T>
MultiOnRequest. call(java.util.function.Supplier<Uni<?>> supplier)
Action when items are being requested.Multi<T>
MultiOnSubscribe. call(java.util.function.Function<? super org.reactivestreams.Subscription,Uni<?>> action)
Produces a newMulti
invoking the given @{code action} when thesubscription
event is received.Multi<T>
MultiOnSubscribe. call(java.util.function.Supplier<Uni<?>> action)
Produces a newMulti
invoking the given @{code action} when thesubscription
event is received.Multi<T>
MultiOnTerminate. call(java.util.function.BiFunction<java.lang.Throwable,java.lang.Boolean,Uni<?>> mapper)
Attaches an action that is executed when theMulti
emits a completion or a failure or when the subscriber cancels the subscription.Multi<T>
MultiOnTerminate. call(java.util.function.Supplier<Uni<?>> supplier)
Attaches an action that is executed when theMulti
emits a completion or a failure or when the subscriber cancels the subscription.MultiOverflowStrategy<T>
MultiOverflow. call(java.util.function.Function<T,Uni<?>> mapper)
Define an overflow dropped item mapper to aUni
.MultiOverflowStrategy<T>
MultiOverflow. call(java.util.function.Supplier<Uni<?>> supplier)
Define an overflow callback to aUni
.Uni<T>
UniOnCancel. call(java.util.function.Supplier<Uni<?>> supplier)
Attaches an action executed when the subscription is cancelled.Uni<T>
UniOnFailure. call(java.util.function.Function<java.lang.Throwable,Uni<?>> action)
Uni<T>
UniOnFailure. call(java.util.function.Supplier<Uni<?>> supplier)
Uni<T>
UniOnItem. call(java.util.function.Function<? super T,Uni<?>> action)
Produces a newUni
invoking the given @{code action} when theitem
event is received.Uni<T>
UniOnItem. call(java.util.function.Supplier<Uni<?>> action)
Produces a newUni
invoking the given @{code action} when theitem
event is received, ignoring it.Uni<T>
UniOnItemOrFailure. call(java.util.function.BiFunction<? super T,java.lang.Throwable,Uni<?>> callback)
Uni<T>
UniOnItemOrFailure. call(java.util.function.Supplier<Uni<?>> callback)
Uni<T>
UniOnNotNull. call(java.util.function.Function<? super T,Uni<?>> action)
Produces a newUni
invoking the given @{code action} when theitem
event is received.Uni<T>
UniOnNotNull. call(java.util.function.Supplier<Uni<?>> action)
Produces a newUni
invoking the given @{code action} when theitem
event is received.Uni<T>
UniOnSubscribe. call(java.util.function.Function<? super UniSubscription,Uni<?>> action)
Produces a newUni
invoking the given @{code action} when thesubscription
event is received.Uni<T>
UniOnSubscribe. call(java.util.function.Supplier<Uni<?>> action)
Produces a newUni
invoking the given @{code action} when thesubscription
event is received.Uni<T>
UniOnTerminate. call(Functions.Function3<? super T,java.lang.Throwable,java.lang.Boolean,Uni<?>> mapper)
Attaches an action that is executed when theUni
emits an item or a failure or when the subscriber cancels the subscription.Uni<T>
UniOnTerminate. call(java.util.function.Supplier<Uni<?>> supplier)
Attaches an action that is executed when theUni
emits an item or a failure or when the subscriber cancels the subscription.<T> Uni<T>
UniCreate. context(java.util.function.Function<Context,Uni<? extends T>> mapper)
<T> Uni<T>
UniCreate. deferred(java.util.function.Supplier<Uni<? extends T>> supplier)
<T,S>
Uni<T>UniCreate. deferred(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,Uni<? extends T>> mapper)
<T> UniJoin.JoinFirstStrategy<T>
UniJoin. first(java.util.List<Uni<T>> unis)
Join multipleUni
and emit the result from the first one to emit a signal, or the first one with a value.<T> Uni<T>
UniAny. of(java.lang.Iterable<? extends Uni<? super T>> iterable)
Creates aUni
forwarding the first event (item or failure).Uni<T>
UniOnFailure. recoverWithUni(java.util.function.Function<? super java.lang.Throwable,Uni<? extends T>> function)
Recovers from the received failure (matching the predicate if set) with anotherUni
.Uni<T>
UniOnFailure. recoverWithUni(java.util.function.Supplier<Uni<? extends T>> supplier)
Recovers from the received failure (matching the predicate if set) with anotherUni
.Uni<T>
UniOnTimeout. recoverWithUni(java.util.function.Supplier<Uni<? extends T>> supplier)
<R,I>
MultiResourceUni<R,I>MultiCreate. resourceFromUni(java.util.function.Supplier<Uni<R>> resourceSupplier, java.util.function.Function<? super R,? extends org.reactivestreams.Publisher<I>> streamSupplier)
Creates aMulti
from a resource, generated by a supplier function called for each individualSubscriber
, while streaming the items from aPublisher/Multi
created from the resource.Uni<T>
UniOnNull. switchTo(java.util.function.Supplier<Uni<? extends T>> supplier)
<O> MultiFlatten<T,O>
MultiOnItem. transformToUni(java.util.function.Function<? super T,Uni<? extends O>> mapper)
On each item received from upstream, invoke the given mapper.<R> Uni<R>
UniOnItem. transformToUni(java.util.function.Function<? super T,Uni<? extends R>> mapper)
Transforms the received item asynchronously, forwarding the events emitted by anotherUni
produced by the givenmapper
.<R> Uni<R>
UniOnItemOrFailure. transformToUni(java.util.function.BiFunction<? super T,java.lang.Throwable,Uni<? extends R>> mapper)
Transforms the received item or failure asynchronously, forwarding the events emitted by anotherUni
produced by the givenmapper
.<R> Uni<R>
UniOnNotNull. transformToUni(java.util.function.Function<? super T,Uni<? extends R>> mapper)
Transforms the received item asynchronously, forwarding the events emitted by anotherUni
produced by the givenmapper
.<O> Multi<O>
MultiOnItem. transformToUniAndConcatenate(java.util.function.Function<? super T,Uni<? extends O>> mapper)
For each items emitted by the upstream, the givenmapper
is invoked.<O> Multi<O>
MultiOnItem. transformToUniAndMerge(java.util.function.Function<? super T,Uni<? extends O>> mapper)
For each items emitted by the upstream, the givenmapper
is invoked.<T> UniRepeat<T>
MultiRepetition. uni(java.util.function.Supplier<Uni<? extends T>> uniSupplier)
<S,T>
UniRepeat<T>MultiRepetition. uni(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,Uni<? extends T>> producer)
UniAndGroupIterable<T1>
UniAndGroup. unis(java.lang.Iterable<? extends Uni<?>> unis)
Combines the currentUni
with the given ones.<O> UniAndGroupIterable<O>
UniZip. unis(java.lang.Iterable<? extends Uni<?>> unis)
Combines severalunis
together.Uni<T>
UniOnItemDelay. until(java.util.function.Function<? super T,Uni<?>> function)
Delays the item emission until theUni
produced by the givenFunction
emits an item (potentiallynull
)MultiCollect<T>
MultiCollect. when(java.util.function.Function<? super T,Uni<java.lang.Boolean>> predicate)
Collects only the items from the upstream that passes the given predicate.Multi<T>
MultiSelect. when(java.util.function.Function<? super T,Uni<java.lang.Boolean>> predicate)
Selects the items where the given function produced aUni
emittingtrue
.Multi<T>
MultiSkip. when(java.util.function.Function<? super T,Uni<java.lang.Boolean>> predicate)
Skips the items where the given function produced aUni
emittingtrue
.<R> R
UniConvert. with(java.util.function.Function<Uni<T>,R> converter)
Transforms thisUni
into a type using the provided converter.Multi<I>
MultiResource. withFinalizer(java.util.function.Function<? super R,Uni<java.lang.Void>> finalizer)
Configures an asynchronous finalizer.Multi<I>
MultiResource. withFinalizer(java.util.function.Function<? super R,Uni<java.lang.Void>> onCompletion, java.util.function.BiFunction<? super R,? super java.lang.Throwable,Uni<java.lang.Void>> onFailure, java.util.function.Function<? super R,Uni<java.lang.Void>> onCancellation)
Configures asynchronous finalizers distinct for each event.Multi<I>
MultiResource. withFinalizer(java.util.function.Function<? super R,Uni<java.lang.Void>> onCompletion, java.util.function.BiFunction<? super R,? super java.lang.Throwable,Uni<java.lang.Void>> onFailure, java.util.function.Function<? super R,Uni<java.lang.Void>> onCancellation)
Configures asynchronous finalizers distinct for each event.Multi<I>
MultiResourceUni. withFinalizer(java.util.function.Function<? super R,Uni<java.lang.Void>> finalizer)
Configures an asynchronous finalizer.Multi<I>
MultiResourceUni. withFinalizer(java.util.function.Function<? super R,Uni<java.lang.Void>> onCompletion, java.util.function.BiFunction<? super R,? super java.lang.Throwable,Uni<java.lang.Void>> onFailure, java.util.function.Function<? super R,Uni<java.lang.Void>> onCancellation)
Configures asynchronous finalizers distinct for each event.Multi<I>
MultiResourceUni. withFinalizer(java.util.function.Function<? super R,Uni<java.lang.Void>> onCompletion, java.util.function.BiFunction<? super R,? super java.lang.Throwable,Uni<java.lang.Void>> onFailure, java.util.function.Function<? super R,Uni<java.lang.Void>> onCancellation)
Configures asynchronous finalizers distinct for each event.Constructors in io.smallrye.mutiny.groups with parameters of type Uni Constructor Description UniAndGroup(Uni<T1> upstream)
UniAndGroup2(Uni<? extends T1> source, Uni<? extends T2> other)
UniAndGroup3(Uni<? extends T1> source, Uni<? extends T2> o1, Uni<? extends T3> o2)
UniAndGroup4(Uni<? extends T1> source, Uni<? extends T2> o1, Uni<? extends T3> o2, Uni<? extends T4> o3)
UniAndGroup5(Uni<? extends T1> source, Uni<? extends T2> o1, Uni<? extends T3> o2, Uni<? extends T4> o3, Uni<? extends T5> o4)
UniAndGroup6(Uni<? extends T1> source, Uni<? extends T2> o1, Uni<? extends T3> o2, Uni<? extends T4> o3, Uni<? extends T5> o4, Uni<? extends T6> o5)
UniAndGroup7(Uni<? extends T1> source, Uni<? extends T2> o1, Uni<? extends T3> o2, Uni<? extends T4> o3, Uni<? extends T5> o4, Uni<? extends T6> o5, Uni<? extends T7> o6)
UniAndGroup8(Uni<? extends T1> source, Uni<? extends T2> o1, Uni<? extends T3> o2, Uni<? extends T4> o3, Uni<? extends T5> o4, Uni<? extends T6> o5, Uni<? extends T7> o6, Uni<? extends T8> o7)
UniAndGroup9(Uni<? extends T1> source, Uni<? extends T2> o1, Uni<? extends T3> o2, Uni<? extends T4> o3, Uni<? extends T5> o4, Uni<? extends T6> o5, Uni<? extends T7> o6, Uni<? extends T8> o7, Uni<? extends T9> o8)
UniAndGroupIterable(Uni<? extends T1> source, java.lang.Iterable<? extends Uni<?>> iterable)
UniAndGroupIterable(Uni<? extends T1> source, java.lang.Iterable<? extends Uni<?>> iterable, boolean collectFailures)
UniAwait(Uni<T> upstream, Context context)
UniAwaitOptional(Uni<T> upstream, Context context)
UniConvert(Uni<T> upstream)
UniIfNoItem(Uni<T> upstream)
UniOnCancel(Uni<T> upstream)
UniOnFailure(Uni<T> upstream, java.util.function.Predicate<? super java.lang.Throwable> predicate)
UniOnItem(Uni<T> upstream)
UniOnItemDelay(Uni<T> upstream, java.util.concurrent.ScheduledExecutorService executor)
Creates a newUniOnItemDelay
instance.UniOnItemOrFailure(Uni<T> upstream)
UniOnNotNull(Uni<T> upstream)
UniOnNull(Uni<T> upstream)
UniOnSubscribe(Uni<T> upstream)
UniOnTerminate(Uni<T> upstream)
UniOnTimeout(Uni<T> upstream, java.time.Duration timeout, java.util.concurrent.ScheduledExecutorService executor)
UniOr(Uni<T> upstream)
UniRepeat(Uni<T> upstream)
UniRepeat(Uni<T> upstream, Uni<?> delay)
UniRetry(Uni<T> upstream, java.util.function.Predicate<? super java.lang.Throwable> onFailurePredicate)
Constructor parameters in io.smallrye.mutiny.groups with type arguments of type Uni Constructor Description MultiOverflowStrategy(Multi<T> upstream, java.util.function.Consumer<T> dropConsumer, java.util.function.Function<T,Uni<?>> dropUniMapper)
MultiResourceUni(java.util.function.Supplier<Uni<R>> resourceSupplier, java.util.function.Function<? super R,? extends org.reactivestreams.Publisher<I>> streamSupplier)
UniAndGroupIterable(Uni<? extends T1> source, java.lang.Iterable<? extends Uni<?>> iterable)
UniAndGroupIterable(Uni<? extends T1> source, java.lang.Iterable<? extends Uni<?>> iterable, boolean collectFailures)
UniAndGroupIterable(java.lang.Iterable<? extends Uni<?>> iterable)
-
Uses of Uni in io.smallrye.mutiny.helpers.spies
Classes in io.smallrye.mutiny.helpers.spies that implement Uni Modifier and Type Class Description class
UniGlobalSpy<T>
class
UniOnCancellationSpy<T>
class
UniOnFailureSpy<T>
class
UniOnItemOrFailureSpy<T>
class
UniOnItemSpy<T>
class
UniOnSubscribeSpy<T>
class
UniOnTerminationSpy<T>
Methods in io.smallrye.mutiny.helpers.spies with parameters of type Uni Modifier and Type Method Description static <T> UniGlobalSpy<T>
Spy. globally(Uni<T> upstream)
Spy allUni
events.static <T> UniOnCancellationSpy<T>
Spy. onCancellation(Uni<T> upstream)
SpyonCancellation()
events.static <T> UniOnFailureSpy<T>
Spy. onFailure(Uni<T> upstream)
SpyonFailure()
events.static <T> UniOnFailureSpy<T>
Spy. onFailure(Uni<T> upstream, java.lang.Class<? extends java.lang.Throwable> typeOfFailure)
SpyonFailure(Class)
events.static <T> UniOnFailureSpy<T>
Spy. onFailure(Uni<T> upstream, java.util.function.Predicate<? super java.lang.Throwable> predicate)
SpyonFailure(Predicate)
)} events.static <T> UniOnItemSpy<T>
Spy. onItem(Uni<T> upstream)
SpyonItem()
events.static <T> UniOnItemOrFailureSpy<T>
Spy. onItemOrFailure(Uni<T> upstream)
SpyonItemOrFailure()
events.static <T> UniOnSubscribeSpy<T>
Spy. onSubscribe(Uni<T> upstream)
SpyonSubscription()
events.static <T> UniOnTerminationSpy<T>
Spy. onTermination(Uni<T> upstream)
SpyonTermination()
events. -
Uses of Uni in io.smallrye.mutiny.infrastructure
Methods in io.smallrye.mutiny.infrastructure that return Uni Modifier and Type Method Description static <T> Uni<T>
Infrastructure. onUniCreation(Uni<T> instance)
default <T> Uni<T>
UniInterceptor. onUniCreation(Uni<T> uni)
Method called when a new instance ofUni
is created.Methods in io.smallrye.mutiny.infrastructure with parameters of type Uni Modifier and Type Method Description default <T> UniSubscriber<? super T>
UniInterceptor. onSubscription(Uni<T> instance, UniSubscriber<? super T> subscriber)
Method called when a subscriber subscribes to aUni
.static <T> Uni<T>
Infrastructure. onUniCreation(Uni<T> instance)
default <T> Uni<T>
UniInterceptor. onUniCreation(Uni<T> uni)
Method called when a new instance ofUni
is created.static <T> UniSubscriber<? super T>
Infrastructure. onUniSubscription(Uni<T> instance, UniSubscriber<? super T> subscriber)
-
Uses of Uni in io.smallrye.mutiny.operators
Classes in io.smallrye.mutiny.operators that implement Uni Modifier and Type Class Description class
AbstractUni<T>
class
UniOperator<I,O>
Methods in io.smallrye.mutiny.operators that return Uni Modifier and Type Method Description Uni<T>
AbstractUni. cache()
Uni<T>
AbstractUni. emitOn(java.util.concurrent.Executor executor)
Uni<T>
AbstractUni. log()
Uni<T>
AbstractUni. log(java.lang.String identifier)
Uni<T>
AbstractUni. runSubscriptionOn(java.util.concurrent.Executor executor)
Uni<T>
AbstractMulti. toUni()
Uni<? extends I>
UniOperator. upstream()
<R> Uni<R>
AbstractUni. withContext(java.util.function.BiFunction<Uni<T>,Context,Uni<R>> builder)
Methods in io.smallrye.mutiny.operators with parameters of type Uni Modifier and Type Method Description static <T> void
AbstractUni. subscribe(Uni<? extends T> upstream, UniSubscriber<? super T> subscriber)
Encapsulates subscription to slightly optimize the AbstractUni case.Method parameters in io.smallrye.mutiny.operators with type arguments of type Uni Modifier and Type Method Description <R> Uni<R>
AbstractUni. withContext(java.util.function.BiFunction<Uni<T>,Context,Uni<R>> builder)
<R> Uni<R>
AbstractUni. withContext(java.util.function.BiFunction<Uni<T>,Context,Uni<R>> builder)
Constructors in io.smallrye.mutiny.operators with parameters of type Uni Constructor Description UniOperator(Uni<? extends I> upstream)
-
Uses of Uni in io.smallrye.mutiny.operators.multi
Constructors in io.smallrye.mutiny.operators.multi with parameters of type Uni Constructor Description MultiRepeatUntilOp(Multi<T> upstream, long times, Uni<?> delay)
MultiRepeatUntilOp(Multi<T> upstream, java.util.function.Predicate<T> predicate, Uni<?> delay)
MultiRepeatWhilstOp(Multi<T> upstream, java.util.function.Predicate<T> predicate, Uni<?> delay)
RepeatProcessor(Multi<? extends T> upstream, MultiSubscriber<? super T> downstream, long times, java.util.function.Predicate<T> predicate, Uni<?> delay)
Constructor parameters in io.smallrye.mutiny.operators.multi with type arguments of type Uni Constructor Description MultiOnCancellationCall(Multi<? extends T> upstream, java.util.function.Supplier<Uni<?>> supplier)
MultiOnCompletionCall(Multi<? extends T> upstream, java.util.function.Supplier<Uni<?>> supplier)
MultiOnRequestCall(Multi<? extends T> upstream, java.util.function.LongFunction<Uni<?>> mapper)
MultiOnSubscribeCall(Multi<? extends T> upstream, java.util.function.Function<? super org.reactivestreams.Subscription,Uni<?>> onSubscribe)
MultiOnTerminationCall(Multi<? extends T> upstream, java.util.function.BiFunction<java.lang.Throwable,java.lang.Boolean,Uni<?>> mapper)
-
Uses of Uni in io.smallrye.mutiny.operators.multi.builders
Constructor parameters in io.smallrye.mutiny.operators.multi.builders with type arguments of type Uni Constructor Description ResourceMulti(java.util.function.Supplier<? extends R> resourceSupplier, java.util.function.Function<? super R,? extends org.reactivestreams.Publisher<I>> streamSupplier, java.util.function.Function<? super R,Uni<java.lang.Void>> onCompletion, java.util.function.BiFunction<? super R,? super java.lang.Throwable,Uni<java.lang.Void>> onFailure, java.util.function.Function<? super R,Uni<java.lang.Void>> onCancellation)
-
Uses of Uni in io.smallrye.mutiny.operators.multi.overflow
Constructor parameters in io.smallrye.mutiny.operators.multi.overflow with type arguments of type Uni Constructor Description MultiOnOverflowBufferOp(Multi<T> upstream, int bufferSize, boolean unbounded, java.util.function.Consumer<T> dropConsumer, java.util.function.Function<T,Uni<?>> dropUniMapper)
MultiOnOverflowDropItemsOp(Multi<? extends T> upstream, java.util.function.Consumer<T> dropConsumer, java.util.function.Function<T,Uni<?>> dropUniMapper)
MultiOnOverflowKeepLastOp(Multi<? extends T> upstream, java.util.function.Consumer<T> dropConsumer, java.util.function.Function<T,Uni<?>> dropUniMapper)
-
Uses of Uni in io.smallrye.mutiny.operators.uni
Classes in io.smallrye.mutiny.operators.uni that implement Uni Modifier and Type Class Description class
UniAndCombination<I,O>
class
UniDelayOnItem<T>
class
UniDelayUntil<T>
class
UniEmitOn<I>
class
UniFailOnTimeout<I>
class
UniLogger<T>
class
UniMemoizeOp<I>
class
UniNever<T>
class
UniOnCancellation<T>
class
UniOnCancellationCall<I>
class
UniOnFailureFlatMap<I>
class
UniOnFailureTransform<I,O>
class
UniOnItemConsume<T>
class
UniOnItemOrFailureConsume<T>
class
UniOnItemOrFailureFlatMap<I,O>
class
UniOnItemOrFailureMap<I,O>
class
UniOnItemTransform<I,O>
class
UniOnItemTransformToUni<I,O>
class
UniOnSubscribeCall<T>
class
UniOnSubscribeInvoke<T>
class
UniOnTermination<T>
class
UniOnTerminationCall<I>
class
UniOrCombination<T>
class
UniRetryAtMost<T>
class
UniRunSubscribeOn<I>
class
UniWithContext<I,O>
Methods in io.smallrye.mutiny.operators.uni with parameters of type Uni Modifier and Type Method Description static <T> T
UniBlockingAwait. await(Uni<T> upstream, java.time.Duration duration, Context context)
static <T> java.util.concurrent.CompletableFuture<T>
UniSubscribeToCompletionStage. subscribe(Uni<T> uni, Context context)
Constructors in io.smallrye.mutiny.operators.uni with parameters of type Uni Constructor Description UniAndCombination(Uni<? extends I> upstream, java.util.List<? extends Uni<?>> others, java.util.function.Function<java.util.List<?>,O> combinator, boolean collectAllFailureBeforeFiring)
UniDelayOnItem(Uni<T> upstream, java.time.Duration duration, java.util.concurrent.ScheduledExecutorService executor)
UniDelayUntil(Uni<T> upstream, java.util.function.Function<? super T,Uni<?>> function, java.util.concurrent.ScheduledExecutorService executor)
UniEmitOn(Uni<I> upstream, java.util.concurrent.Executor executor)
UniFailOnTimeout(Uni<I> upstream, java.time.Duration timeout, java.util.function.Supplier<? extends java.lang.Throwable> supplier, java.util.concurrent.ScheduledExecutorService executor)
UniLogger(Uni<? extends T> upstream, java.lang.String identifier)
UniMemoizeOp(Uni<? extends I> upstream)
UniMemoizeOp(Uni<? extends I> upstream, java.util.function.BooleanSupplier invalidationRequested)
UniOnCancellation(Uni<T> upstream, java.lang.Runnable callback)
UniOnCancellationCall(Uni<? extends I> upstream, java.util.function.Supplier<Uni<?>> supplier)
UniOnFailureFlatMap(Uni<I> upstream, java.util.function.Predicate<? super java.lang.Throwable> predicate, java.util.function.Function<? super java.lang.Throwable,Uni<? extends I>> mapper)
UniOnFailureTransform(Uni<I> upstream, java.util.function.Predicate<? super java.lang.Throwable> predicate, java.util.function.Function<? super java.lang.Throwable,? extends java.lang.Throwable> mapper)
UniOnItemConsume(Uni<? extends T> upstream, java.util.function.Consumer<? super T> onItemCallback, java.util.function.Consumer<java.lang.Throwable> onFailureCallback, java.util.function.Predicate<? super java.lang.Throwable> predicate)
UniOnItemOrFailureConsume(Uni<? extends T> upstream, java.util.function.BiConsumer<? super T,java.lang.Throwable> callback)
UniOnItemOrFailureFlatMap(Uni<I> upstream, java.util.function.BiFunction<? super I,java.lang.Throwable,Uni<? extends O>> mapper)
UniOnItemOrFailureMap(Uni<I> upstream, java.util.function.BiFunction<? super I,java.lang.Throwable,? extends O> mapper)
UniOnItemTransform(Uni<I> source, java.util.function.Function<? super I,? extends O> mapper)
UniOnItemTransformToMulti(Uni<I> upstream, java.util.function.Function<? super I,? extends org.reactivestreams.Publisher<? extends O>> mapper)
UniOnItemTransformToUni(Uni<I> upstream, java.util.function.Function<? super I,Uni<? extends O>> mapper)
UniOnSubscribeCall(Uni<? extends T> upstream, java.util.function.Function<? super UniSubscription,Uni<?>> callback)
UniOnSubscribeInvoke(Uni<? extends T> upstream, java.util.function.Consumer<? super UniSubscription> callback)
UniOnTermination(Uni<T> upstream, Functions.TriConsumer<T,java.lang.Throwable,java.lang.Boolean> callback)
UniOnTerminationCall(Uni<I> upstream, Functions.Function3<? super I,java.lang.Throwable,java.lang.Boolean,Uni<?>> mapper)
UniRetryAtMost(Uni<T> upstream, java.util.function.Predicate<? super java.lang.Throwable> predicate, long maxAttempts)
UniRunSubscribeOn(Uni<? extends I> upstream, java.util.concurrent.Executor executor)
UniWithContext(Uni<I> upstream, java.util.function.BiFunction<Uni<I>,Context,Uni<O>> builder)
Constructor parameters in io.smallrye.mutiny.operators.uni with type arguments of type Uni Constructor Description UniAndCombination(Uni<? extends I> upstream, java.util.List<? extends Uni<?>> others, java.util.function.Function<java.util.List<?>,O> combinator, boolean collectAllFailureBeforeFiring)
UniDelayUntil(Uni<T> upstream, java.util.function.Function<? super T,Uni<?>> function, java.util.concurrent.ScheduledExecutorService executor)
UniOnCancellationCall(Uni<? extends I> upstream, java.util.function.Supplier<Uni<?>> supplier)
UniOnFailureFlatMap(Uni<I> upstream, java.util.function.Predicate<? super java.lang.Throwable> predicate, java.util.function.Function<? super java.lang.Throwable,Uni<? extends I>> mapper)
UniOnItemOrFailureFlatMap(Uni<I> upstream, java.util.function.BiFunction<? super I,java.lang.Throwable,Uni<? extends O>> mapper)
UniOnItemTransformToUni(Uni<I> upstream, java.util.function.Function<? super I,Uni<? extends O>> mapper)
UniOnSubscribeCall(Uni<? extends T> upstream, java.util.function.Function<? super UniSubscription,Uni<?>> callback)
UniOnTerminationCall(Uni<I> upstream, Functions.Function3<? super I,java.lang.Throwable,java.lang.Boolean,Uni<?>> mapper)
UniOrCombination(java.lang.Iterable<? extends Uni<? super T>> iterable)
UniWithContext(Uni<I> upstream, java.util.function.BiFunction<Uni<I>,Context,Uni<O>> builder)
UniWithContext(Uni<I> upstream, java.util.function.BiFunction<Uni<I>,Context,Uni<O>> builder)
-
Uses of Uni in io.smallrye.mutiny.operators.uni.builders
Classes in io.smallrye.mutiny.operators.uni.builders that implement Uni Modifier and Type Class Description class
DeferredUniWithContext<T>
class
UniCreateFromCompletionStage<T>
class
UniCreateFromCompletionStageWithState<T,S>
SpecializedUni
implementation for the case where the item is produced from a supplier.class
UniCreateFromDeferredSupplier<T>
class
UniCreateFromDeferredSupplierWithState<S,T>
class
UniCreateFromEmitterWithState<T,S>
SpecializedUni
implementation for the case where the item is produced from a supplier.class
UniCreateFromFailureSupplier<T>
SpecializedUni
implementation for the case where the failure is produced by a supplier.class
UniCreateFromFuture<T>
class
UniCreateFromItemSupplier<T>
SpecializedUni
implementation for the case where the item is produced by a supplier.class
UniCreateFromItemWithState<T,S>
SpecializedUni
implementation for the case where the item is produced from a supplier.class
UniCreateFromKnownFailure<T>
SpecializedUni
implementation for the case where the failure is known.class
UniCreateFromKnownItem<T>
SpecializedUni
implementation for the case where the item is known.class
UniCreateFromPublisher<T>
class
UniCreateWithEmitter<T>
class
UniJoinAll<T>
class
UniJoinFirst<T>
Constructor parameters in io.smallrye.mutiny.operators.uni.builders with type arguments of type Uni Constructor Description DeferredUniWithContext(java.util.function.Function<Context,Uni<? extends T>> mapper)
UniCreateFromDeferredSupplier(java.util.function.Supplier<Uni<? extends T>> supplier)
UniCreateFromDeferredSupplierWithState(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,Uni<? extends T>> mapper)
UniJoinAll(java.util.List<Uni<T>> unis, UniJoinAll.Mode mode)
UniJoinFirst(java.util.List<Uni<T>> unis, UniJoinFirst.Mode mode)
-