public class HttpFailureStatusAcceptor<Output> extends WaiterAcceptor<Output>
Constructor and Description |
---|
HttpFailureStatusAcceptor(int expectedStatusCode,
WaiterState waiterState) |
Modifier and Type | Method and Description |
---|---|
WaiterState |
getState()
Abstract method to fetch the corresponding state
|
boolean |
matches(AmazonServiceException ase)
Default method definition that matches the exception
with the expected state defined by the acceptor.
|
matches
public HttpFailureStatusAcceptor(int expectedStatusCode, WaiterState waiterState)
public boolean matches(AmazonServiceException ase)
WaiterAcceptor
matches
in class WaiterAcceptor<Output>
ase
- Exception thrown by the execution of the operationpublic WaiterState getState()
WaiterAcceptor
getState
in class WaiterAcceptor<Output>
Copyright © 2017. All rights reserved.