Class UniCreateFromCompletionStageWithState<T,​S>

  • Type Parameters:
    T - the type of the item
    S - the type of the state
    All Implemented Interfaces:
    Uni<T>

    public class UniCreateFromCompletionStageWithState<T,​S>
    extends AbstractUni<T>
    Specialized Uni implementation for the case where the item is produced from a supplier. This variant of UniCreateFromItemSupplier accepts a state supplier. The supplied item can be null.
    • Constructor Detail

      • UniCreateFromCompletionStageWithState

        public UniCreateFromCompletionStageWithState​(java.util.function.Supplier<S> stateSupplier,
                                                     java.util.function.Function<S,​? extends java.util.concurrent.CompletionStage<? extends T>> mapper)