Class WaitersRuntime.ResponseStatusAcceptor
java.lang.Object
software.amazon.awssdk.services.kinesis.waiters.internal.WaitersRuntime.ResponseStatusAcceptor
- All Implemented Interfaces:
WaiterAcceptor<SdkResponse>
- Enclosing class:
WaitersRuntime
public static final class WaitersRuntime.ResponseStatusAcceptor
extends Object
implements WaiterAcceptor<SdkResponse>
A
WaiterAcceptor
implementation that checks for a specific HTTP response status, regardless of whether
it's reported by a response or an exception.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check to see if the exception matches the expected state defined by this acceptorboolean
matches
(SdkResponse response) Check to see if the response matches with the expected state defined by this acceptorMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.core.waiters.WaiterAcceptor
message
-
Constructor Details
-
ResponseStatusAcceptor
-
-
Method Details
-
waiterState
- Specified by:
waiterState
in interfaceWaiterAcceptor<SdkResponse>
- Returns:
- the next
WaiterState
that the waiter should be transitioned to
-
matches
Description copied from interface:WaiterAcceptor
Check to see if the response matches with the expected state defined by this acceptor- Specified by:
matches
in interfaceWaiterAcceptor<SdkResponse>
- Parameters:
response
- the response to inspect- Returns:
- whether it accepts the response
-
matches
Description copied from interface:WaiterAcceptor
Check to see if the exception matches the expected state defined by this acceptor- Specified by:
matches
in interfaceWaiterAcceptor<SdkResponse>
- Parameters:
throwable
- the exception to inspect- Returns:
- whether it accepts the throwable
-