public class UniConvert<T> extends Object
| Constructor and Description |
|---|
UniConvert(Uni<T> upstream) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<T> |
toCompletableFuture() |
CompletionStage<T> |
toCompletionStage() |
org.reactivestreams.Publisher<T> |
toPublisher() |
<R> R |
with(Function<Uni<T>,R> converter)
Transforms this
Uni into a type using the provided converter. |
public <R> R with(Function<Uni<T>,R> converter)
Uni into a type using the provided converter.R - the result typeconverter - the converter functionRuntimeException - if the conversion fails.public CompletionStage<T> toCompletionStage()
public CompletableFuture<T> toCompletableFuture()
public org.reactivestreams.Publisher<T> toPublisher()
Copyright © 2019–2020 SmallRye. All rights reserved.