public class WaiterImpl<InputT,OutputT,ErrorT extends RuntimeException> extends Object implements Waiter<InputT>
| Constructor and Description | 
|---|
WaiterImpl(WaiterBuilder<InputT,OutputT,ErrorT> waiterBuilder)
Constructs a new waiter with the given internal parameters 
 | 
| 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. 
 | 
public WaiterImpl(WaiterBuilder<InputT,OutputT,ErrorT> waiterBuilder)
waiterBuilder - Takes in default parameters and builds a
                      basic waiter. Excludes request and custom
                      polling strategy parameters.public void run(WaiterParameters<InputT> waiterParameters) throws WaiterTimedOutException, WaiterUnrecoverableException
run in interface Waiter<InputT>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.public Future<Void> runAsync(WaiterParameters<InputT> waiterParameters, WaiterHandler callback) throws WaiterTimedOutException, WaiterUnrecoverableException
runAsync in interface Waiter<InputT>waiterParameters - Custom provided parameters. Includes request and
                         optional custom polling strategycallback - Custom callbackWaiterTimedOutExceptionWaiterUnrecoverableExceptionCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.