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
isRetryable
boolean isRetryable(Throwable failure)
nextRetryDelaySeconds
long nextRetryDelaySeconds(Date firstAttempt,
Date recordedFailure,
int numberOfTries)
- Returns:
- Time to the next retry.
FlowConstants.NONE
means stop
retrying.
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.