| Modifier and Type | Class and Description |
|---|---|
| public static class | BmcGenericWaiter.
Exception indicating the the condition being waited on was not met before the termination condition was satisfied. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final GenericWaiter |
| Access | Constructor and Description |
|---|---|
| public | BmcGenericWaiter(TerminationStrategy
The termination strategy to use. terminationStrategy, DelayStrategy The delay strategy to use. delayStrategy)Creates a new waiter with the given strategies. |
| Modifier and Type | Method and Description |
|---|---|
| public < Request object class REQUEST, Response object class RESPONSE> RESPONSE | Returns: The last response object that was received and was accepted by the termination predicate (or null if 404 was allowed).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, boolean True to allow 404 responses to be accepted (ex, for termination conditions). allow404)Blocks until a specific condition is met. |
| public < Request object class REQUEST, Response object class RESPONSE> Callable | Returns: The last response object that was received and was accepted by the termination predicate (or null if 404 was allowed).Supplier that provides a new request instance to fetch the current
state. requestSupplier, final 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, final Predicate<RESPONSE> The termination predicate that will inspect the current state
(returned response instance) to determine if it is done waiting. terminationPredicate, final boolean True to allow 404 responses to be accepted (ex, for termination conditions). allow404)Same as |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| waiter | back to summary |
|---|---|
| private final GenericWaiter waiter | |
| BmcGenericWaiter | back to summary |
|---|---|
| public BmcGenericWaiter(TerminationStrategy terminationStrategy, DelayStrategy delayStrategy) Creates a new waiter with the given strategies.
| |
| execute | back to summary |
|---|---|
| public <REQUEST, RESPONSE> RESPONSE execute(Supplier<REQUEST> requestSupplier, Function<REQUEST, RESPONSE> functionCall, Predicate<RESPONSE> terminationPredicate, boolean allow404) throws WaitConditionFailedException Blocks until a specific condition is met. If the
| |
| toCallable | back to summary |
|---|---|
| public <REQUEST, RESPONSE> Callable Same as
| |
| Access | Constructor and Description |
|---|---|
| private |
| WaitConditionFailedException | back to summary |
|---|---|
| private WaitConditionFailedException(String message) | |