public abstract class WaiterAcceptor<Output> extends Object
Constructor and Description |
---|
WaiterAcceptor() |
Modifier and Type | Method and Description |
---|---|
abstract WaiterState |
getState()
Abstract method to fetch the corresponding state
|
boolean |
matches(AmazonServiceException output)
Default method definition that matches the exception
with the expected state defined by the acceptor.
|
boolean |
matches(Output output)
Default method definition that matches the response
state with the expected state defined by the acceptor.
|
public boolean matches(Output output)
output
- Response got by the execution of the operationpublic boolean matches(AmazonServiceException output)
output
- Exception thrown by the execution of the operationpublic abstract WaiterState getState()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.