Uses of Interface
io.helidon.common.reactive.OptionalCompletionStage
-
Packages that use OptionalCompletionStage Package Description io.helidon.common.reactive Common reactive library for Helidon projects. -
-
Uses of OptionalCompletionStage in io.helidon.common.reactive
Methods in io.helidon.common.reactive that return OptionalCompletionStage Modifier and Type Method Description static <T> OptionalCompletionStage<T>
OptionalCompletionStage. create(CompletionStage<Optional<T>> originalStage)
Creates a new instance of the completion stage that allows processing of cases when the element is present and when not.OptionalCompletionStage<T>
OptionalCompletionStage. onEmpty(Runnable action)
Returns a newOptionalCompletionStage
that, when this stage completes normally and returnsnull
, executes the given action.OptionalCompletionStage<T>
OptionalCompletionStage. onValue(Consumer<? super T> action)
Returns a newOptionalCompletionStage
that, when this stage completes normally and returns non-null
, is executed with this stage's result as the argument to the supplied action.
-