public interface AsyncClientResponseProvider<T>
| Modifier and Type | Method and Description |
|---|---|
T |
fromCompletionStage(CompletionStage<?> completionStage)
Turns
CompletionStage to a reactive type. |
T |
fromCompletionStage(Supplier<CompletionStage<?>> completionStageSupplier)
Turns
CompletionStage to a reactive type in a deferred fashion. |
T fromCompletionStage(CompletionStage<?> completionStage)
CompletionStage to a reactive type.completionStage - The CompletionStage that will produce a value.T fromCompletionStage(Supplier<CompletionStage<?>> completionStageSupplier)
CompletionStage to a reactive type in a deferred fashion. For instance, in the case of
Rx or Reactor, the Supplier.get() will only be called when subscription happens.completionStageSupplier - The Supplier of a CompletionStage that will produce a value.
This allows lazy triggering of future-based APIs.Copyright © 2020 JBoss by Red Hat. All rights reserved.