public interface Waiter<InputT>
| Modifier and Type | Method and Description |
|---|---|
void |
run(WaiterParameters<InputT> waiterParameters)
Polls synchronously until it is determined that the resource
transitioned into the desired state or not.
|
Future<Void> |
runAsync(WaiterParameters<InputT> waiterParameters,
WaiterHandler callback)
Polls asynchronously until it is determined that the resource
transitioned into the desired state or not.
|
void run(WaiterParameters<InputT> waiterParameters) throws WaiterTimedOutException, WaiterUnrecoverableException
waiterParameters - Custom provided parameters. Includes request and
optional custom polling strategyWaiterUnrecoverableException - If the resource transitions into a failure/unexpected state.WaiterTimedOutException - If the resource doesn't transition into the desired state
even after a certain number of retries.Future<Void> runAsync(WaiterParameters<InputT> waiterParameters, WaiterHandler callback) throws WaiterTimedOutException, WaiterUnrecoverableException
waiterParameters - Custom provided parameters. Includes request and
optional custom polling strategycallback - Custom callbackWaiterTimedOutExceptionWaiterUnrecoverableExceptionCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.