Class UniCreateFromCompletionStageWithState<T,S>
- java.lang.Object
-
- io.smallrye.mutiny.operators.AbstractUni<T>
-
- io.smallrye.mutiny.operators.uni.builders.UniCreateFromCompletionStageWithState<T,S>
-
- Type Parameters:
T
- the type of the itemS
- the type of the state
- All Implemented Interfaces:
Uni<T>
public class UniCreateFromCompletionStageWithState<T,S> extends AbstractUni<T>
SpecializedUni
implementation for the case where the item is produced from a supplier. This variant ofUniCreateFromItemSupplier
accepts a state supplier. The supplied item can benull
.
-
-
Constructor Summary
Constructors Constructor Description UniCreateFromCompletionStageWithState(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,? extends java.util.concurrent.CompletionStage<? extends T>> mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
subscribe(UniSubscriber<? super T> subscriber)
-
Methods inherited from class io.smallrye.mutiny.operators.AbstractUni
await, awaitUsing, cache, convert, emitOn, ifNoItem, log, log, memoize, onCancellation, onFailure, onFailure, onFailure, onItem, onItemOrFailure, onSubscribe, onSubscription, onTermination, repeat, runSubscriptionOn, subscribe, subscribe, toMulti, withContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.mutiny.Uni
attachContext, call, call, chain, chain, eventually, eventually, flatMap, invoke, invoke, map, plug, replaceIfNullWith, replaceIfNullWith, replaceWith, replaceWith, replaceWith, replaceWithNull, replaceWithVoid, stage, subscribeAsCompletionStage, subscribeAsCompletionStage
-
-
-
-
Method Detail
-
subscribe
public void subscribe(UniSubscriber<? super T> subscriber)
- Specified by:
subscribe
in classAbstractUni<T>
-
-