public class WaiterExecution<Input extends AmazonWebServiceRequest,Output> extends Object
Constructor and Description |
---|
WaiterExecution(WaiterExecutionBuilder<Input,Output> waiterExecutionBuilder)
Constructs a new waiter with all the parameters defined
in the WaiterExecutionBuilder
|
Modifier and Type | Method and 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<Input,Output> 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 © 2013 Amazon Web Services, Inc. All Rights Reserved.