Class WaiterExecutorHelper<T>
java.lang.Object
software.amazon.awssdk.core.internal.waiters.WaiterExecutorHelper<T>
The waiter executor helper class. Contains the logic shared by
WaiterExecutor
and
AsyncWaiterExecutor
-
Constructor Summary
ConstructorDescriptionWaiterExecutorHelper
(List<WaiterAcceptor<? super T>> waiterAcceptors, WaiterConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionlong
computeNextDelayInMills
(int attemptNumber) createWaiterResponse
(Either<T, Throwable> responseOrException, int attempts) boolean
exceedsMaxWaitTime
(long startTime, long nextDelayInMills) Optional
<WaiterAcceptor<? super T>> firstWaiterAcceptorIfMatched
(Either<T, Throwable> responseOrException) nextDelayOrUnretryableException
(int attemptNumber, long startTime) noneMatchException
(Either<T, Throwable> responseOrException) waiterFailureException
(WaiterAcceptor<? super T> acceptor)
-
Constructor Details
-
WaiterExecutorHelper
public WaiterExecutorHelper(List<WaiterAcceptor<? super T>> waiterAcceptors, WaiterConfiguration configuration)
-
-
Method Details
-
createWaiterResponse
public WaiterResponse<T> createWaiterResponse(Either<T, Throwable> responseOrException, int attempts) -
firstWaiterAcceptorIfMatched
-
computeNextDelayInMills
public long computeNextDelayInMills(int attemptNumber) -
exceedsMaxWaitTime
public boolean exceedsMaxWaitTime(long startTime, long nextDelayInMills) -
nextDelayOrUnretryableException
public Either<Long,SdkClientException> nextDelayOrUnretryableException(int attemptNumber, long startTime) -
noneMatchException
-
waiterFailureException
-