| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final WaiterConfiguration |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public < Request object class REQUEST, Response object class RESPONSE> Optional | Returns: The last response object that was received and was accepted by the termination predicate, or empty if the waiter reached the max timeout.Supplier that provides a new request instance to fetch the current
state. requestSupplier, Function<REQUEST, RESPONSE> Function that will be invoked to fetch the current state. It will be
provided the request instance given by the requestSupplier. functionCall, Predicate<RESPONSE> The termination predicate that will inspect the current state
(returned response instance) to determine if it is done waiting. terminationPredicate)Blocks until a specific condition is met. |
| public <T> CompletionStage | executeAsync(WaiterScheduler runner, Supplier<CompletionStage<T>> downstream, Predicate<T> terminationPredicate)
|
| private <T> CompletionStage | executeAsync(WaiterScheduler runner, Supplier<CompletionStage<T>> upstream, Predicate<T> terminationPredicate, WaiterConfiguration.
|
| private static <T> CompletionStage | |
| public WaiterConfiguration |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| waiterConfiguration | back to summary |
|---|---|
| private final WaiterConfiguration waiterConfiguration | |
| GenericWaiter | back to summary |
|---|---|
public GenericWaiter(final WaiterConfiguration waiterConfiguration)
| |
| execute | back to summary |
|---|---|
| public <REQUEST, RESPONSE> Optional Blocks until a specific condition is met.
| |
| executeAsync | back to summary |
|---|---|
| public <T> CompletionStage | |
| executeAsync | back to summary |
|---|---|
| private <T> CompletionStage | |
| failedFuture | back to summary |
|---|---|
| private static <T> CompletionStage | |
| getWaiterConfiguration | back to summary |
|---|---|
| public WaiterConfiguration getWaiterConfiguration() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile Future |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancel(boolean
this value has no effect in this
implementation because interrupts are not used to control
processing. mayInterruptIfRunning)Overrides java. Implements java. If not already completed, completes this CompletableFuture with
a |
| upstreamFuture | back to summary |
|---|---|
| pack-priv volatile Future<?> upstreamFuture | |
| CancellableCompletableFuture | back to summary |
|---|---|
| private CancellableCompletableFuture() | |
| cancel | back to summary |
|---|---|
| public boolean cancel(boolean mayInterruptIfRunning) Overrides java. Implements java. Doc from java. If not already completed, completes this CompletableFuture with
a
| |