public class WaiterExecution<InputT,OutputT,ErrorT extends RuntimeException> extends Object
Constructor and Description |
---|
WaiterExecution(WaiterExecutionBuilder<InputT,OutputT,ErrorT> 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<InputT,OutputT,ErrorT> waiterExecutionBuilder)
waiterExecutionBuilder
- Contains all the parameters required to construct a
new waiterpublic boolean pollResource() throws WaiterTimedOutException, WaiterUnrecoverableException
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.