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) |
boolean |
matches(Throwable throwable) |
WaiterState |
waiterState() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
errorOnExceptionAcceptor, errorOnResponseAcceptor, errorOnResponseAcceptor, message, retryOnExceptionAcceptor, retryOnResponseAcceptor, successOnExceptionAcceptor, successOnResponseAcceptor
public ResponseStatusAcceptor(int statusCode, WaiterState waiterState)
public WaiterState waiterState()
waiterState
in interface WaiterAcceptor<SdkResponse>
public boolean matches(SdkResponse response)
matches
in interface WaiterAcceptor<SdkResponse>
public boolean matches(Throwable throwable)
matches
in interface WaiterAcceptor<SdkResponse>
Copyright © 2023. All rights reserved.