HttpFailureStatusAcceptor
, HttpSuccessStatusAcceptor
public abstract class WaiterAcceptor<OutputT> extends Object
Constructor | Description |
---|---|
WaiterAcceptor() |
Modifier and Type | Method | Description |
---|---|---|
abstract WaiterState |
getState() |
Abstract method to fetch the corresponding state
|
boolean |
matches(OutputT output) |
Default method definition that matches the response
state with the expected state defined by the acceptor.
|
boolean |
matches(AmazonServiceException output) |
Default method definition that matches the exception
with the expected state defined by the acceptor.
|
public boolean matches(OutputT 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 © 2017 Amazon Web Services, Inc. All Rights Reserved.