org.mule.retry.policies
Class SimpleRetryPolicyTemplate

java.lang.Object
  extended by org.mule.retry.policies.AbstractPolicyTemplate
      extended by org.mule.retry.policies.SimpleRetryPolicyTemplate
All Implemented Interfaces:
MuleContextAware, RetryPolicyTemplate
Direct Known Subclasses:
RetryForeverPolicyTemplate

public class SimpleRetryPolicyTemplate
extends AbstractPolicyTemplate

This policy allows the user to configure how many times a retry should be attempted and how long to wait between retries.


Field Summary
protected  int count
           
static int DEFAULT_FREQUENCY
           
static int DEFAULT_RETRY_COUNT
           
protected  long frequency
           
protected  Log logger
          logger used by this class
static int RETRY_COUNT_FOREVER
           
 
Fields inherited from class org.mule.retry.policies.AbstractPolicyTemplate
notifier
 
Constructor Summary
SimpleRetryPolicyTemplate()
           
SimpleRetryPolicyTemplate(long frequency, int retryCount)
           
 
Method Summary
 RetryPolicy createRetryInstance()
           
 int getCount()
           
 long getFrequency()
           
 void setCount(int count)
           
 void setFrequency(long frequency)
           
 String toString()
           
 
Methods inherited from class org.mule.retry.policies.AbstractPolicyTemplate
execute, getMetaInfo, getNotifier, setId, setMetaInfo, setMuleContext, setNotifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected final transient Log logger
logger used by this class


DEFAULT_FREQUENCY

public static final int DEFAULT_FREQUENCY
See Also:
Constant Field Values

DEFAULT_RETRY_COUNT

public static final int DEFAULT_RETRY_COUNT
See Also:
Constant Field Values

RETRY_COUNT_FOREVER

public static final int RETRY_COUNT_FOREVER
See Also:
Constant Field Values

count

protected volatile int count

frequency

protected volatile long frequency
Constructor Detail

SimpleRetryPolicyTemplate

public SimpleRetryPolicyTemplate()

SimpleRetryPolicyTemplate

public SimpleRetryPolicyTemplate(long frequency,
                                 int retryCount)
Method Detail

getFrequency

public long getFrequency()

getCount

public int getCount()

setFrequency

public void setFrequency(long frequency)

setCount

public void setCount(int count)

createRetryInstance

public RetryPolicy createRetryInstance()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.