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(Either<T,Throwable> responseOrException,
int attempts) |
boolean |
exceedsMaxWaitTime(long startTime,
long nextDelayInMills) |
Optional<WaiterAcceptor<? super T>> |
firstWaiterAcceptorIfMatched(Either<T,Throwable> responseOrException) |
Either<Long,SdkClientException> |
nextDelayOrUnretryableException(int attemptNumber,
long startTime) |
SdkClientException |
noneMatchException(Either<T,Throwable> responseOrException) |
SdkClientException |
waiterFailureException(WaiterAcceptor<? super T> acceptor) |
public WaiterExecutorHelper(List<WaiterAcceptor<? super T>> waiterAcceptors, WaiterConfiguration configuration)
public WaiterResponse<T> createWaiterResponse(Either<T,Throwable> responseOrException, int attempts)
public Optional<WaiterAcceptor<? super T>> firstWaiterAcceptorIfMatched(Either<T,Throwable> responseOrException)
public long computeNextDelayInMills(int attemptNumber)
public boolean exceedsMaxWaitTime(long startTime, long nextDelayInMills)
public Either<Long,SdkClientException> nextDelayOrUnretryableException(int attemptNumber, long startTime)
public SdkClientException noneMatchException(Either<T,Throwable> responseOrException)
public SdkClientException waiterFailureException(WaiterAcceptor<? super T> acceptor)
Copyright © 2023. All rights reserved.