Class WaitersRuntime.ResponseStatusAcceptor
- java.lang.Object
-
- software.amazon.awssdk.services.ses.waiters.internal.WaitersRuntime.ResponseStatusAcceptor
-
- All Implemented Interfaces:
WaiterAcceptor<SdkResponse>
- Enclosing class:
- WaitersRuntime
public static final class WaitersRuntime.ResponseStatusAcceptor extends Object implements WaiterAcceptor<SdkResponse>
AWaiterAcceptor
implementation that checks for a specific HTTP response status, regardless of whether it's reported by a response or an exception.
-
-
Constructor Summary
Constructors Constructor Description ResponseStatusAcceptor(int statusCode, WaiterState waiterState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(Throwable throwable)
boolean
matches(SdkResponse response)
WaiterState
waiterState()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.waiters.WaiterAcceptor
message
-
-
-
-
Constructor Detail
-
ResponseStatusAcceptor
public ResponseStatusAcceptor(int statusCode, WaiterState waiterState)
-
-
Method Detail
-
waiterState
public WaiterState waiterState()
- Specified by:
waiterState
in interfaceWaiterAcceptor<SdkResponse>
-
matches
public boolean matches(SdkResponse response)
- Specified by:
matches
in interfaceWaiterAcceptor<SdkResponse>
-
matches
public boolean matches(Throwable throwable)
- Specified by:
matches
in interfaceWaiterAcceptor<SdkResponse>
-
-