public final class WaiterExecutorHelper<T> extends Object
WaiterExecutor and
AsyncWaiterExecutor| Constructor and Description |
|---|
WaiterExecutorHelper(List<WaiterAcceptor<? super T>> waiterAcceptors,
WaiterConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
long |
computeNextDelayInMills(int attemptNumber) |
WaiterResponse<T> |
createWaiterResponse(software.amazon.awssdk.utils.Either<T,Throwable> responseOrException,
int attempts) |
boolean |
exceedsMaxWaitTime(long startTime,
long nextDelayInMills) |
Optional<WaiterAcceptor<? super T>> |
firstWaiterAcceptorIfMatched(software.amazon.awssdk.utils.Either<T,Throwable> responseOrException) |
software.amazon.awssdk.utils.Either<Long,SdkClientException> |
nextDelayOrUnretryableException(int attemptNumber,
long startTime) |
SdkClientException |
noneMatchException(software.amazon.awssdk.utils.Either<T,Throwable> responseOrException) |
SdkClientException |
waiterFailureException(WaiterAcceptor<? super T> acceptor) |
public WaiterExecutorHelper(List<WaiterAcceptor<? super T>> waiterAcceptors, WaiterConfiguration configuration)
public WaiterResponse<T> createWaiterResponse(software.amazon.awssdk.utils.Either<T,Throwable> responseOrException, int attempts)
public Optional<WaiterAcceptor<? super T>> firstWaiterAcceptorIfMatched(software.amazon.awssdk.utils.Either<T,Throwable> responseOrException)
public long computeNextDelayInMills(int attemptNumber)
public boolean exceedsMaxWaitTime(long startTime,
long nextDelayInMills)
public software.amazon.awssdk.utils.Either<Long,SdkClientException> nextDelayOrUnretryableException(int attemptNumber, long startTime)
public SdkClientException noneMatchException(software.amazon.awssdk.utils.Either<T,Throwable> responseOrException)
public SdkClientException waiterFailureException(WaiterAcceptor<? super T> acceptor)
Copyright © 2022. All rights reserved.