Class WaitersRuntime.ResponseStatusAcceptor
- java.lang.Object
-
- software.amazon.awssdk.services.acm.waiters.internal.WaitersRuntime.ResponseStatusAcceptor
-
- All Implemented Interfaces:
WaiterAcceptor<SdkResponse>
- Enclosing class:
- WaitersRuntime
public static final class WaitersRuntime.ResponseStatusAcceptor extends Object implements WaiterAcceptor<SdkResponse>
AWaiterAcceptorimplementation 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 booleanmatches(Throwable throwable)booleanmatches(SdkResponse response)WaiterStatewaiterState()-
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:
waiterStatein interfaceWaiterAcceptor<SdkResponse>
-
matches
public boolean matches(SdkResponse response)
- Specified by:
matchesin interfaceWaiterAcceptor<SdkResponse>
-
matches
public boolean matches(Throwable throwable)
- Specified by:
matchesin interfaceWaiterAcceptor<SdkResponse>
-
-