public class SimpleRetryPolicy extends Object implements RetryPolicy
Modifier and Type | Class and Description |
---|---|
protected static class |
SimpleRetryPolicy.RetryCounter |
Modifier and Type | Field and Description |
---|---|
protected static Log |
logger |
protected SimpleRetryPolicy.RetryCounter |
retryCounter |
Constructor and Description |
---|
SimpleRetryPolicy(long frequency,
int retryCount) |
Modifier and Type | Method and Description |
---|---|
PolicyStatus |
applyPolicy(Throwable cause) |
protected boolean |
isApplicableTo(Throwable cause)
Indicates if the policy is applicable for the cause that caused the policy invocation.
|
protected boolean |
isExhausted()
Determines if the policy is exhausted or not comparing the original configuration against the current state.
|
protected static final Log logger
protected SimpleRetryPolicy.RetryCounter retryCounter
public PolicyStatus applyPolicy(Throwable cause)
applyPolicy
in interface RetryPolicy
protected boolean isApplicableTo(Throwable cause)
protected boolean isExhausted()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.