com.amazonaws.services.simpleworkflow.flow.interceptors
Interface RetryPolicy
- All Known Implementing Classes:
- ExponentialRetryPolicy, RetryPolicyBase
public interface RetryPolicy
Defines retry policy in case of failures. Valid implementation should be
stateless and thread safe.
- See Also:
RetryDecorator
,
ExponentialRetry
Method Summary |
boolean |
isRetryable(java.lang.Throwable failure)
|
long |
nextRetryDelaySeconds(java.util.Date firstAttempt,
java.util.Date recordedFailure,
int numberOfTries)
|
isRetryable
boolean isRetryable(java.lang.Throwable failure)
nextRetryDelaySeconds
long nextRetryDelaySeconds(java.util.Date firstAttempt,
java.util.Date recordedFailure,
int numberOfTries)
- Returns:
- Time to the next retry.
FlowConstants.NONE
means stop
retrying.
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.