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>
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)
Optional<String>
message()
WaiterState
waiterState()
-
-
-
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>
-
message
public Optional<String> message()
- Specified by:
message
in interfaceWaiterAcceptor<SdkResponse>
-
-