public class WaiterExecution<InputT extends AmazonWebServiceRequest,OutputT> extends Object
| Constructor | Description |
|---|---|
WaiterExecution(WaiterExecutionBuilder<InputT,OutputT> waiterExecutionBuilder) |
Constructs a new waiter with all the parameters defined
in the WaiterExecutionBuilder
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
pollResource() |
Polls until a specified resource transitions into either success or failure state or
until the specified number of retries has been made.
|
public WaiterExecution(WaiterExecutionBuilder<InputT,OutputT> waiterExecutionBuilder)
waiterExecutionBuilder - Contains all the parameters required to construct a
new waiterpublic boolean pollResource()
throws AmazonServiceException,
WaiterTimedOutException,
WaiterUnrecoverableException
AmazonServiceException - If the service exception thrown doesn't match any of the expected
exceptions, it's re-thrown.WaiterUnrecoverableException - 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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.