public static final class WaitersRuntime.ResponseStatusAcceptor extends Object implements WaiterAcceptor<SdkResponse>
WaiterAcceptor implementation that checks for a specific HTTP response status, regardless of whether
it's reported by a response or an exception.| Constructor and Description |
|---|
ResponseStatusAcceptor(int statusCode,
WaiterState waiterState) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(SdkResponse response)
Check to see if the response matches with the expected state defined by this acceptor
|
boolean |
matches(Throwable throwable)
Check to see if the exception matches the expected state defined by this acceptor
|
Optional<String> |
message()
Optional message to provide pertaining to the next WaiterState
|
WaiterState |
waiterState() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiterrorOnExceptionAcceptor, errorOnExceptionAcceptor, errorOnResponseAcceptor, errorOnResponseAcceptor, retryOnExceptionAcceptor, retryOnResponseAcceptor, successOnExceptionAcceptor, successOnResponseAcceptorpublic ResponseStatusAcceptor(int statusCode,
WaiterState waiterState)
public WaiterState waiterState()
waiterState in interface WaiterAcceptor<SdkResponse>WaiterState that the waiter should be transitioned topublic boolean matches(SdkResponse response)
WaiterAcceptormatches in interface WaiterAcceptor<SdkResponse>response - the response to inspectpublic boolean matches(Throwable throwable)
WaiterAcceptormatches in interface WaiterAcceptor<SdkResponse>throwable - the exception to inspectpublic Optional<String> message()
WaiterAcceptormessage in interface WaiterAcceptor<SdkResponse>Copyright © 2026. All rights reserved.