org.mule.providers
Class SimpleRetryConnectionStrategy

java.lang.Object
  extended byorg.mule.providers.AbstractConnectionStrategy
      extended byorg.mule.providers.SimpleRetryConnectionStrategy
All Implemented Interfaces:
ConnectionStrategy

public class SimpleRetryConnectionStrategy
extends AbstractConnectionStrategy

A simple connection retry strategy where the a connection will be attempted X number of retryCount every Y milliseconds. The retryCount and frequency properties can be set to customise the behaviour.


Field Summary
 
Fields inherited from class org.mule.providers.AbstractConnectionStrategy
logger
 
Constructor Summary
SimpleRetryConnectionStrategy()
           
 
Method Summary
 void doConnect(UMOConnectable connectable)
           
 long getFrequency()
           
 int getRetryCount()
           
 void resetState()
          Resets any state stored in the retry strategy
 void setFrequency(long frequency)
           
 void setRetryCount(int retryCount)
           
 
Methods inherited from class org.mule.providers.AbstractConnectionStrategy
connect, getDescription, isDoThreading, setDoThreading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRetryConnectionStrategy

public SimpleRetryConnectionStrategy()
Method Detail

doConnect

public void doConnect(UMOConnectable connectable)
               throws FatalConnectException
Specified by:
doConnect in class AbstractConnectionStrategy
Throws:
FatalConnectException

resetState

public void resetState()
Resets any state stored in the retry strategy

Specified by:
resetState in class AbstractConnectionStrategy

getRetryCount

public int getRetryCount()

setRetryCount

public void setRetryCount(int retryCount)

getFrequency

public long getFrequency()

setFrequency

public void setFrequency(long frequency)


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.