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>
SpecializedUniimplementation for the case where the item is produced from a supplier. This variant ofUniCreateFromItemSupplieraccepts 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 voidsubscribe(UniSubscriber<? super T> subscriber)-
Methods inherited from class io.smallrye.mutiny.operators.AbstractUni
and, and, await, cache, convert, emitOn, ifNoItem, memoize, on, onCancellation, onFailure, onFailure, onFailure, onItem, onItemOrFailure, onSubscribe, onTermination, or, repeat, runSubscriptionOn, subscribe, subscribe, toMulti
-
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
call, call, chain, chain, eventually, eventually, flatMap, invoke, invoke, invokeUni, map, plug, replaceWith, replaceWith, replaceWith, replaceWithNull, stage, subscribeAsCompletionStage, then, then
-
-
-
-
Method Detail
-
subscribe
public void subscribe(UniSubscriber<? super T> subscriber)
- Specified by:
subscribein classAbstractUni<T>
-
-