Uses of Interface
io.smallrye.mutiny.Uni
Packages that use Uni
Package
Description
-
Uses of Uni in io.smallrye.mutiny
Methods in io.smallrye.mutiny that return UniModifier and TypeMethodDescriptiondefault Uni<ItemWithContext<T>> Uni.attachContext()Materialize the context by attaching it to items using theItemWithContextwrapper class.Produces a newUniinvoking the given @{code action} when theitemevent is received.Produces a newUniinvoking the given @{code action} when theitemevent is received, but ignoring it.default <O> Uni<O> Once the observedUniemits an item, execute the givenmapper.default <O> Uni<O> Once the observedUniemits an item, execute the givensupplier.Produces a newUniinvoking theUniSubscriber.onItem(Object)andUniSubscriber.onFailure(Throwable)on the suppliedExecutor.Uni.eventually(Runnable action) Execute an action after an item, a failure or a cancellation has been received.Uni.eventually(Supplier<Uni<? extends O>> supplier) default <O> Uni<O> Transforms the received item asynchronously, forwarding the events emitted by anotherUniproduced by the givenmapper.Produces a newUniinvoking the given callback when theitemevent is fired, but ignoring it.Produces a newUniinvoking the given callback when theitemevent is fired.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".Log events (onSubscribe, onItem, ...) as they come from the upstream or the subscriber.default <O> Uni<O> Transforms the item (potentially null) emitted by thisUniby applying a (synchronous) function to it.default <R> Uni<R> Plug a user-defined operator that does not belong to the existing Mutiny API.Uni.replaceIfNullWith(Supplier<T> supplier) Uni.replaceIfNullWith(T value) When thisUniemitsnull, replace with the provided value.default <O> Uni<O> Uni.replaceWith(Uni<O> uni) default <O> Uni<O> Uni.replaceWith(Supplier<O> supplier) default <O> Uni<O> Uni.replaceWith(O item) Ignore the item emitted by thisUniand replace it with another value.Uni.replaceWithNull()Ignore the item emitted by thisUniand replace it withnull.Uni.replaceWithVoid()Uni.runSubscriptionOn(Executor executor) Multi.toUni()default <R> Uni<R> Uni.withContext(BiFunction<Uni<T>, Context, Uni<R>> builder) Materialize the subscriberContextfor a sub-pipeline.Methods in io.smallrye.mutiny with parameters of type UniMethod parameters in io.smallrye.mutiny with type arguments of type UniModifier and TypeMethodDescriptionProduces a newMultiinvoking the given @{code action} when anitemevent is received.Produces a newMultiinvoking the given @{code action} when anitemevent is received, but ignoring it in the callback.Produces a newUniinvoking the given @{code action} when theitemevent is received.Produces a newUniinvoking the given @{code action} when theitemevent is received, but ignoring it.default <O> Uni<O> Once the observedUniemits an item, execute the givenmapper.default <O> Uni<O> Once the observedUniemits an item, execute the givensupplier.Uni.eventually(Supplier<Uni<? extends O>> supplier) default <O> Uni<O> Transforms the received item asynchronously, forwarding the events emitted by anotherUniproduced by the givenmapper.default <R> Uni<R> Plug a user-defined operator that does not belong to the existing Mutiny API.default <R> Uni<R> Plug a user-defined operator that does not belong to the existing Mutiny API.default <O> OAllows structuring the pipeline by creating a logic separation:default <R> Uni<R> Uni.withContext(BiFunction<Uni<T>, Context, Uni<R>> builder) Materialize the subscriberContextfor a sub-pipeline.default <R> Uni<R> Uni.withContext(BiFunction<Uni<T>, Context, Uni<R>> builder) Materialize the subscriberContextfor a sub-pipeline. -
Uses of Uni in io.smallrye.mutiny.groups
Methods in io.smallrye.mutiny.groups that return UniModifier and TypeMethodDescriptionUniJoin.JoinAllStrategy.andCollectFailures()Wait for allUnireferences to terminate, and collect all failures in aCompositeException.UniJoin.JoinAllStrategyTerminal.andCollectFailures()Wait for allUnireferences to terminate, and collect all failures in aCompositeException.UniOnItemIgnore.andContinueWith(Supplier<? extends T> supplier) Ignores the item fired by the currentUni, and continue with the value produced by the given supplier.UniOnItemIgnore.andContinueWith(T fallback) Ignores the item fired by the currentUni, and continue with a default value.UniOnItemIgnore.andContinueWithNull()Ignores the item fired by the currentUni, and continue with anullitem.UniOnItemIgnore.andFail()LikeUniOnItemIgnore.andFail(Throwable)but using anException.Ignores the item fired by the currentUniand fails with the passed failure.UniJoin.JoinAllStrategy.andFailFast()UniJoin.JoinAllStrategyTerminal.andFailFast()<O> Uni<O> UniOnItemIgnore.andSwitchTo(Uni<? extends O> other) <O> Uni<O> UniOnItemIgnore.andSwitchTo(Supplier<Uni<? extends O>> supplier) MultiCollect.asList()MultiCollect.asMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper) MultiCollect.asMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper, BinaryOperator<V> mergeFunction) <K> Uni<Map<K, Collection<T>>> MultiCollect.asMultiMap(Function<? super T, ? extends K> keyMapper) <K,V> Uni <Map<K, Collection<V>>> MultiCollect.asMultiMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper) MultiCollect.asSet()UniAndGroup2.asTuple()UniAndGroup3.asTuple()UniAndGroup4.asTuple()UniAndGroup5.asTuple()UniAndGroup6.asTuple()UniAndGroup7.asTuple()UniAndGroup8.asTuple()UniAndGroup9.asTuple()Deprecated, for removal: This API element is subject to removal in a future version.UniRetry.atMost(long numberOfAttempts) Delays the item emission by a specific duration.Attaches an action executed when the subscription is cancelled.Produces a newUniinvoking the given @{code action} when theitemevent is received.Produces a newUniinvoking the given @{code action} when theitemevent is received, ignoring it.UniOnItemOrFailure.call(BiFunction<? super T, Throwable, Uni<?>> callback) Produces a newUniinvoking the given @{code action} when theitemevent is received.Produces a newUniinvoking the given @{code action} when theitemevent is received.UniOnSubscribe.call(Function<? super UniSubscription, Uni<?>> action) Produces a newUniinvoking the given @{code action} when thesubscriptionevent is received.Produces a newUniinvoking the given @{code action} when thesubscriptionevent is received.Attaches an action that is executed when theUniemits an item or a failure or when the subscriber cancels the subscription.Attaches an action that is executed when theUniemits an item or a failure or when the subscriber cancels the subscription.<O> Uni<O> Produces anUniemitting an item based on the upstream item but casted to the target class.<O> Uni<O> UniAndGroup2.combinedWith(BiFunction<T1, T2, O> combinator) Deprecated, for removal: This API element is subject to removal in a future version.useUniAndGroup2.with(BiFunction)instead<O> Uni<O> UniAndGroup3.combinedWith(Functions.Function3<T1, T2, T3, O> combinator) Deprecated, for removal: This API element is subject to removal in a future version.useUniAndGroup3.with(Functions.Function3)instead<O> Uni<O> UniAndGroup4.combinedWith(Functions.Function4<T1, T2, T3, T4, O> combinator) Deprecated, for removal: This API element is subject to removal in a future version.useUniAndGroup4.with(Functions.Function4)instead<O> Uni<O> UniAndGroup5.combinedWith(Functions.Function5<T1, T2, T3, T4, T5, O> combinator) Deprecated, for removal: This API element is subject to removal in a future version.useUniAndGroup5.with(Functions.Function5)instead<O> Uni<O> UniAndGroup6.combinedWith(Functions.Function6<T1, T2, T3, T4, T5, T6, O> combinator) Deprecated, for removal: This API element is subject to removal in a future version.useUniAndGroup6.with(Functions.Function6)instead<O> Uni<O> UniAndGroup7.combinedWith(Functions.Function7<T1, T2, T3, T4, T5, T6, T7, O> combinator) Deprecated, for removal: This API element is subject to removal in a future version.useUniAndGroup7.with(Functions.Function7)instead<O> Uni<O> UniAndGroup8.combinedWith(Functions.Function8<T1, T2, T3, T4, T5, T6, T7, T8, O> combinator) Deprecated, for removal: This API element is subject to removal in a future version.useUniAndGroup8.with(Functions.Function8)instead<O> Uni<O> Deprecated, for removal: This API element is subject to removal in a future version.useUniAndGroup9.with(Functions.Function9)instead<O,I> Uni <O> UniAndGroupIterable.combinedWith(Class<I> superType, Function<List<I>, O> function) Deprecated, for removal: This API element is subject to removal in a future version.useUniAndGroupIterable.with(Class, Function)instead<O> Uni<O> UniAndGroupIterable.combinedWith(Function<List<?>, O> function) Deprecated, for removal: This API element is subject to removal in a future version.use {UniAndGroupIterable.with(Function)} instead<T> Uni<T> UniCreate.completionStage(CompletionStage<? extends T> stage) <T> Uni<T> UniCreate.completionStage(Supplier<? extends CompletionStage<? extends T>> supplier) <T,S> Uni <T> UniCreate.completionStage(Supplier<S> stateSupplier, Function<S, ? extends CompletionStage<? extends T>> mapper) <T> Uni<T> Creates aUniusingFunction.apply(Object)on the subscription-boundContext(the mapper is called at subscription time).UniOnNull.continueWith(Supplier<? extends T> supplier) Provides a default item if the currentUnifiresnullas item.UniOnNull.continueWith(T fallback) Provides a default item if the currentUnifiresnullas item.<I,T> Uni <T> UniCreate.converter(io.smallrye.mutiny.converters.UniConverter<I, T> converter, I instance) Creates a newUnifrom the passed instance with the passed converter.<T> Uni<T> <T,S> Uni <T> UniAndGroupIterable.discardItems()<T> Uni<T> UniCreate.emitter(Consumer<UniEmitter<? super T>> consumer) Creates aUnideferring the logic to the given consumer.<T,S> Uni <T> UniCreate.emitter(Supplier<S> stateSupplier, BiConsumer<S, UniEmitter<? super T>> consumer) Creates aUnideferring the logic to the given consumer.UniRetry.expireAt(long expireAt) UniRetry.expireIn(long expireIn) UniOnNull.fail()LikeUniOnNull.failWith(Throwable)but using aNoSuchElementException.UniOnTimeout.fail()<T> Uni<T> Creates aUnithat emits afailureevent immediately after being subscribed to.<T> Uni<T> Creates aUnithat emits afailureevent produced using the passed supplier immediately after being subscribed to.MultiCollect.first()UniMemoize.forFixedDuration(Duration duration) Memoize the received item or failure for a duration after the upstream subscription has been received.<T> Uni<T> <T> Uni<T> <T> Uni<T> <T> Uni<T> MultiOnItem.ignoreAsUni()Ignores the passed items.<X> Uni<X> MultiCollect.in(Supplier<X> supplier, BiConsumer<X, T> accumulator) UniMemoize.indefinitely()Memoize the received item or failure indefinitely.UniRetry.indefinitely()Attaches an action executed when the subscription is cancelled.Produces a newUniinvoking the given callback when theitemevent is fired, ignoring its value.Produces a newUniinvoking the given callback when theitemevent is fired.UniOnItemOrFailure.invoke(BiConsumer<? super T, Throwable> callback) Produces a newUniinvoking the given callback when theitemevent is fired.Produces a newUniinvoking the given callback when theitemevent is fired.Produces a newUniinvoking the given callback when thesubscriptionis received.UniOnSubscribe.invoke(Consumer<? super UniSubscription> callback) Produces a newUniinvoking the given callback when thesubscriptionis received.UniOnTerminate.invoke(Functions.TriConsumer<T, Throwable, Boolean> consumer) Attaches an action that is executed when theUniemits an item or a failure or when the subscriber cancels the subscription.Attaches an action that is executed when theUniemits an item or a failure or when the subscriber cancels the subscription.<T> Uni<T> Creates a newUnithat completes immediately after being subscribed to with the specified (potentiallynull) value.<T,S> Uni <T> Creates a newUnithat completes immediately after being subscribed to with the specified (potentiallynull) value.<T> Uni<T> UniCreate.item(T item) Creates a newUnithat completes immediately after being subscribed to with the specified (potentiallynull) item.MultiCollect.last()<T> Uni<T> <T> Uni<T> UniCreate.nothing()<T> Uni<T> UniCreate.nullItem()Creates a newUnithat completes with anullitem.final <T> Uni<T> LikeUniAny.of(Iterable)but with an array ofUnias parameter<T> Uni<T> Creates aUniforwarding the first event (item or failure).<T> Uni<T> Creates a newUnithat completes immediately after being subscribed to with the item based on the value contained in the given optional ifOptional.isPresent()ornullotherwise.<T> Uni<T> Creates a newUnithat completes immediately after being subscribed to with the item based on the value contained in the given optional ifOptional.isPresent()ornullotherwise.<T> Uni<T> UniCreate.publisher(Flow.Publisher<? extends T> publisher) Creates aUnifrom the passedFlow.Publisher.UniOnFailure.recoverWithItem(Function<E, ? extends T> function) Recovers from the received failure (matching the predicate if set) by using a item generated by the given function.UniOnFailure.recoverWithItem(Supplier<T> supplier) Recovers from the received failure (matching the predicate if set) by using a item generated by the given supplier.UniOnFailure.recoverWithItem(T fallback) Recovers from the received failure (matching the predicate if set) by using a fallback item.UniOnTimeout.recoverWithItem(Supplier<T> supplier) UniOnTimeout.recoverWithItem(T fallback) UniOnFailure.recoverWithNull()Recovers from the received failure by ignoring it and emitting anullitem in the resultingUni.UniOnFailure.recoverWithUni(Uni<? extends T> fallback) Recovers from the received failure (matching the predicate if set) with anotherUni.UniOnFailure.recoverWithUni(Function<E, Uni<? extends T>> function) Recovers from the received failure (matching the predicate if set) with anotherUni.UniOnFailure.recoverWithUni(Supplier<Uni<? extends T>> supplier) Recovers from the received failure (matching the predicate if set) with anotherUni.UniOnTimeout.recoverWithUni(Uni<? extends T> fallback) UniOnTimeout.recoverWithUni(Supplier<Uni<? extends T>> supplier) UniJoin.JoinFirstStrategy.toTerminate()Forward the value or failure from the firstUnito terminate.<R> Uni<R> <R> Uni<R> UniOnItemOrFailure.transform(BiFunction<? super T, Throwable, ? extends R> mapper) <R> Uni<R> <R> Uni<R> UniOnItem.transformToUni(BiConsumer<? super T, UniEmitter<? super R>> consumer) Transforms the received item asynchronously, forwarding the events emitted by anUniEmitterprovided to the given consumer.<R> Uni<R> UniOnItem.transformToUni(Function<? super T, Uni<? extends R>> mapper) Transforms the received item asynchronously, forwarding the events emitted by anotherUniproduced by the givenmapper.<R> Uni<R> UniOnItemOrFailure.transformToUni(Functions.TriConsumer<? super T, Throwable, UniEmitter<? super R>> consumer) Transforms the received item or failure asynchronously, forwarding the events emitted by theUniEmitterprovided to the given consumer.<R> Uni<R> UniOnItemOrFailure.transformToUni(BiFunction<? super T, Throwable, Uni<? extends R>> mapper) Transforms the received item or failure asynchronously, forwarding the events emitted by anotherUniproduced by the givenmapper.<R> Uni<R> UniOnNotNull.transformToUni(BiConsumer<? super T, UniEmitter<? super R>> consumer) Transforms the received item asynchronously, forwarding the events emitted anUniEmitterconsumes by the given consumer.<R> Uni<R> UniOnNotNull.transformToUni(Function<? super T, Uni<? extends R>> mapper) Transforms the received item asynchronously, forwarding the events emitted by anotherUniproduced by the givenmapper.UniMemoize.until(BooleanSupplier invalidationGuard) Memoize the received item or failure as long as the provided boolean supplier evaluates tofalse.UniCreate.voidItem()Creates a newUnithat completes with anullitem.UniRetry.when(Function<Multi<Throwable>, ? extends Flow.Publisher<?>> whenStreamFactory) Produces aUniresubscribing to the currentUniwhen theFlow.Publisherproduced by the given method emits an item.<X,A> Uni <X> <O> Uni<O> UniAndGroup2.with(BiFunction<T1, T2, O> combinator) Creates the resultingUni.<O> Uni<O> UniAndGroup3.with(Functions.Function3<T1, T2, T3, O> combinator) <O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O,I> Uni <O> <O> Uni<O> UniJoin.JoinFirstStrategy.withItem()Forward the value from the firstUnito terminate with a value.UniJoin.JoinFirstStrategyTerminal.withItem()Forward the value from the firstUnito terminate with a value.<O> Uni<O> UniAndGroup2.withUni(BiFunction<T1, T2, Uni<O>> combinator) Creates the resultingUni.<O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O,I> Uni <O> <O> Uni<O> Methods in io.smallrye.mutiny.groups with parameters of type UniModifier and TypeMethodDescriptionAdd aUni.final <T> UniJoin.JoinAllStrategy<T> Join multipleUnireferences and emit a list of values, this is a convenience delegate method forUniJoin.all(List).<O> Uni<O> UniOnItemIgnore.andSwitchTo(Uni<? extends O> other) final <T> UniJoin.JoinFirstStrategy<T> Join multipleUniand emit the result from the first one to emit a signal, or the first one with a value.final <T> Uni<T> LikeUniAny.of(Iterable)but with an array ofUnias parameterUniOnFailure.recoverWithUni(Uni<? extends T> fallback) Recovers from the received failure (matching the predicate if set) with anotherUni.UniOnTimeout.recoverWithUni(Uni<? extends T> fallback) <T> Multi<T> <T2> UniAndGroup2<T1, T2> Combines the currentUniwith the given one.Combines the currentUniwith the given ones.<T2,T3> UniAndGroup3 <T1, T2, T3> Combines the currentUniwith the given ones.<T2,T3, T4>
UniAndGroup4<T1, T2, T3, T4> Combines the currentUniwith 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 currentUniwith 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 currentUniwith 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 currentUniwith 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 currentUniwith 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 currentUniwith the given ones.<O> UniAndGroupIterable<O> Combines severalunistogether.<T1,T2> UniAndGroup2 <T1, T2> Combines twounistogether.<T1,T2, T3>
UniAndGroup3<T1, T2, T3> Combines the threeunistogether.<T1,T2, T3, T4>
UniAndGroup4<T1, T2, T3, T4> Combines fourunistogether.<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 fiveunistogether.<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 sixunistogether.<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 7unistogether.<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 8unistogether.<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 9unistogether.Method parameters in io.smallrye.mutiny.groups with type arguments of type UniModifier and TypeMethodDescriptionfinal <T> UniJoin.JoinAllStrategy<T> Join multipleUnireferences and emit a list of values.<O> Uni<O> UniOnItemIgnore.andSwitchTo(Supplier<Uni<? extends O>> supplier) Attaches an action executed when the subscription is cancelled.Produces a newMultiinvoking the given @{code action} when afailureevent is received.Produces a newMultiinvoking the given @{code action} when afailureevent is received.Produces a newMultiinvoking the given @{code action} when anitemevent is received.Produces a newMultiinvoking the given @{code action} when anitemevent is received, but ignoring it in the callback.MultiOnRequest.call(LongFunction<Uni<?>> mapper) Action when items are being requested.Action when items are being requested.MultiOnSubscribe.call(Function<? super Flow.Subscription, Uni<?>> action) Produces a newMultiinvoking the given @{code action} when thesubscriptionevent is received.Produces a newMultiinvoking the given @{code action} when thesubscriptionevent is received.MultiOnTerminate.call(BiFunction<Throwable, Boolean, Uni<?>> mapper) Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription.Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription.Define an overflow dropped item mapper to aUni.Define an overflow callback to aUni.Attaches an action executed when the subscription is cancelled.Produces a newUniinvoking the given @{code action} when theitemevent is received.Produces a newUniinvoking the given @{code action} when theitemevent is received, ignoring it.UniOnItemOrFailure.call(BiFunction<? super T, Throwable, Uni<?>> callback) Produces a newUniinvoking the given @{code action} when theitemevent is received.Produces a newUniinvoking the given @{code action} when theitemevent is received.UniOnSubscribe.call(Function<? super UniSubscription, Uni<?>> action) Produces a newUniinvoking the given @{code action} when thesubscriptionevent is received.Produces a newUniinvoking the given @{code action} when thesubscriptionevent is received.Attaches an action that is executed when theUniemits an item or a failure or when the subscriber cancels the subscription.Attaches an action that is executed when theUniemits an item or a failure or when the subscriber cancels the subscription.<T> Uni<T> Creates aUniusingFunction.apply(Object)on the subscription-boundContext(the mapper is called at subscription time).<T> Uni<T> <T,S> Uni <T> final <T> UniJoin.JoinFirstStrategy<T> Join multipleUniand emit the result from the first one to emit a signal, or the first one with a value.<T> Uni<T> Creates aUniforwarding the first event (item or failure).UniOnFailure.recoverWithUni(Function<E, Uni<? extends T>> function) Recovers from the received failure (matching the predicate if set) with anotherUni.UniOnFailure.recoverWithUni(Supplier<Uni<? extends T>> supplier) Recovers from the received failure (matching the predicate if set) with anotherUni.UniOnTimeout.recoverWithUni(Supplier<Uni<? extends T>> supplier) <R,I> MultiResourceUni <R, I> MultiCreate.resourceFromUni(Supplier<Uni<R>> resourceSupplier, Function<? super R, ? extends Flow.Publisher<I>> streamSupplier) Creates aMultifrom a resource, generated by a supplier function called for each individualFlow.Subscriber, while streaming the items from aPublisher/Multicreated from the resource.<O> MultiFlatten<T, O> MultiOnItem.transformToUni(Function<? super T, Uni<? extends O>> mapper) On each item received from upstream, invoke the given mapper.<R> Uni<R> UniOnItem.transformToUni(Function<? super T, Uni<? extends R>> mapper) Transforms the received item asynchronously, forwarding the events emitted by anotherUniproduced by the givenmapper.<R> Uni<R> UniOnItemOrFailure.transformToUni(BiFunction<? super T, Throwable, Uni<? extends R>> mapper) Transforms the received item or failure asynchronously, forwarding the events emitted by anotherUniproduced by the givenmapper.<R> Uni<R> UniOnNotNull.transformToUni(Function<? super T, Uni<? extends R>> mapper) Transforms the received item asynchronously, forwarding the events emitted by anotherUniproduced by the givenmapper.<O> Multi<O> MultiOnItem.transformToUniAndConcatenate(Function<? super T, Uni<? extends O>> mapper) For each items emitted by the upstream, the givenmapperis invoked.<O> Multi<O> MultiOnItem.transformToUniAndMerge(Function<? super T, Uni<? extends O>> mapper) For each items emitted by the upstream, the givenmapperis invoked.<T> UniRepeat<T> <S,T> UniRepeat <T> Combines the currentUniwith the given ones.<O> UniAndGroupIterable<O> Combines severalunistogether.Collects only the items from the upstream that passes the given predicate.Selects the items where the given function produced aUniemittingtrue.Skips the items where the given function produced aUniemittingtrue.<R> RTransforms thisUniinto a type using the provided converter.MultiResource.withFinalizer(Function<? super R, Uni<Void>> finalizer) Configures an asynchronous finalizer.MultiResource.withFinalizer(Function<? super R, Uni<Void>> onCompletion, BiFunction<? super R, ? super Throwable, Uni<Void>> onFailure, Function<? super R, Uni<Void>> onCancellation) Configures asynchronous finalizers distinct for each event.MultiResource.withFinalizer(Function<? super R, Uni<Void>> onCompletion, BiFunction<? super R, ? super Throwable, Uni<Void>> onFailure, Function<? super R, Uni<Void>> onCancellation) Configures asynchronous finalizers distinct for each event.MultiResourceUni.withFinalizer(Function<? super R, Uni<Void>> finalizer) Configures an asynchronous finalizer.MultiResourceUni.withFinalizer(Function<? super R, Uni<Void>> onCompletion, BiFunction<? super R, ? super Throwable, Uni<Void>> onFailure, Function<? super R, Uni<Void>> onCancellation) Configures asynchronous finalizers distinct for each event.MultiResourceUni.withFinalizer(Function<? super R, Uni<Void>> onCompletion, BiFunction<? super R, ? super Throwable, Uni<Void>> onFailure, Function<? super R, Uni<Void>> onCancellation) Configures asynchronous finalizers distinct for each event.<O> Uni<O> UniAndGroup2.withUni(BiFunction<T1, T2, Uni<O>> combinator) Creates the resultingUni.<O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O> Uni<O> <O,I> Uni <O> <O> Uni<O> Constructors in io.smallrye.mutiny.groups with parameters of type UniModifierConstructorDescriptionUniAndGroup(Uni<T1> upstream) UniAndGroup2(Uni<? extends T1> source, Uni<? extends T2> other) 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, Iterable<? extends Uni<?>> iterable) UniAndGroupIterable(Uni<? extends T1> source, Iterable<? extends Uni<?>> iterable, boolean collectFailures) UniAwaitOptional(Uni<T> upstream, Context context) UniConvert(Uni<T> upstream) UniIfNoItem(Uni<T> upstream) UniOnCancel(Uni<T> upstream) UniOnItemDelay(Uni<T> upstream, ScheduledExecutorService executor) Creates a newUniOnItemDelayinstance.UniOnItemOrFailure(Uni<T> upstream) UniOnNotNull(Uni<T> upstream) UniOnSubscribe(Uni<T> upstream) UniOnTerminate(Uni<T> upstream) UniOnTimeout(Uni<T> upstream, Duration timeout, ScheduledExecutorService executor) Constructor parameters in io.smallrye.mutiny.groups with type arguments of type UniModifierConstructorDescriptionMultiOverflowStrategy(Multi<T> upstream, Consumer<T> dropConsumer, Function<T, Uni<?>> dropUniMapper) MultiResourceUni(Supplier<Uni<R>> resourceSupplier, Function<? super R, ? extends Flow.Publisher<I>> streamSupplier) UniAndGroupIterable(Uni<? extends T1> source, Iterable<? extends Uni<?>> iterable) UniAndGroupIterable(Uni<? extends T1> source, Iterable<? extends Uni<?>> iterable, boolean collectFailures) UniAndGroupIterable(Iterable<? extends Uni<?>> iterable) -
Uses of Uni in io.smallrye.mutiny.helpers.spies
Classes in io.smallrye.mutiny.helpers.spies that implement UniModifier and TypeClassDescriptionclassUniGlobalSpy<T>classclassclassclassUniOnItemSpy<T>classclassMethods in io.smallrye.mutiny.helpers.spies with parameters of type UniModifier and TypeMethodDescriptionstatic <T> UniGlobalSpy<T> Spy allUnievents.static <T> UniOnCancellationSpy<T> Spy.onCancellation(Uni<T> upstream) SpyonCancellation()events.static <T> UniOnFailureSpy<T> SpyonFailure()events.static <T> UniOnFailureSpy<T> SpyonFailure(Class)events.static <T> UniOnFailureSpy<T> SpyonFailure(Predicate))} events.static <T> UniOnItemSpy<T> 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 UniModifier and TypeMethodDescriptionstatic <T> Uni<T> Infrastructure.onUniCreation(Uni<T> instance) default <T> Uni<T> UniInterceptor.onUniCreation(Uni<T> uni) Method called when a new instance ofUniis created.Methods in io.smallrye.mutiny.infrastructure with parameters of type UniModifier and TypeMethodDescriptiondefault <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 ofUniis 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 UniMethods in io.smallrye.mutiny.operators that return UniModifier and TypeMethodDescriptionAbstractUni.cache()AbstractUni.log()AbstractUni.runSubscriptionOn(Executor executor) AbstractMulti.toUni()UniOperator.upstream()<R> Uni<R> AbstractUni.withContext(BiFunction<Uni<T>, Context, Uni<R>> builder) Methods in io.smallrye.mutiny.operators with parameters of type UniModifier and TypeMethodDescriptionstatic <T> voidAbstractUni.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 UniModifier and TypeMethodDescription<R> Uni<R> AbstractUni.withContext(BiFunction<Uni<T>, Context, Uni<R>> builder) <R> Uni<R> AbstractUni.withContext(BiFunction<Uni<T>, Context, Uni<R>> builder) Constructors in io.smallrye.mutiny.operators with parameters of type Uni
UniMemoize.forFixedDuration(Duration)instead.