/** * Default way of checking if polling should be retried * or fast failed * * @param pollingStrategyContext Provides the polling context required to make the retry decision * @return false if the number of re */ @Override public boolean shouldRetry(PollingStrategyContext pollingStrategyContext) { return pollingStrategyContext.getRetriesAttempted() < defaultMaxAttempts; } }
throw new WaiterUnrecoverableException("Resource never entered the desired state as it failed."); case RETRY: PollingStrategyContext pollingStrategyContext = new PollingStrategyContext(request, retriesAttempted); if (pollingStrategy.getRetryStrategy().shouldRetry(pollingStrategyContext)) { safeCustomDelay(pollingStrategyContext);
throw new WaiterUnrecoverableException("Resource never entered the desired state as it failed."); case RETRY: PollingStrategyContext pollingStrategyContext = new PollingStrategyContext(request, retriesAttempted); if (pollingStrategy.getRetryStrategy().shouldRetry(pollingStrategyContext)) { safeCustomDelay(pollingStrategyContext);
/** * Default way of checking if polling should be retried * or fast failed * * @param pollingStrategyContext Provides the polling context required to make the retry decision * @return false if the number of re */ @Override public boolean shouldRetry(PollingStrategyContext pollingStrategyContext) { return pollingStrategyContext.getRetriesAttempted() < defaultMaxAttempts; } }
throw new WaiterUnrecoverableException("Resource never entered the desired state as it failed."); case RETRY: PollingStrategyContext pollingStrategyContext = new PollingStrategyContext(request, retriesAttempted); if (pollingStrategy.getRetryStrategy().shouldRetry(pollingStrategyContext)) { safeCustomDelay(pollingStrategyContext);
/** * Default way of checking if polling should be retried * or fast failed * * @param pollingStrategyContext Provides the polling context required to make the retry decision * @return false if the number of re */ @Override public boolean shouldRetry(PollingStrategyContext pollingStrategyContext) { return pollingStrategyContext.getRetriesAttempted() < defaultMaxAttempts; } }