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