public class SimpleRetryConnectionStrategy extends AbstractConnectionStrategy
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SimpleRetryConnectionStrategy.RetryCounter |
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal |
called |
static int |
DEFAULT_FREQUENCY |
static int |
DEFAULT_RETRY_COUNT |
static int |
RETRY_COUNT_FOREVER |
protected static SimpleRetryConnectionStrategy.RetryCounter |
retryCounter |
isInitialThread, logger, reconnectLock| Constructor and Description |
|---|
SimpleRetryConnectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doConnect(Connectable connectable) |
int |
getRetryCount() |
long |
getRetryFrequency() |
void |
resetState()
Resets any state stored in the retry strategy
|
void |
setRetryCount(int retryCount)
How many times to retry.
|
void |
setRetryFrequency(long retryFrequency) |
connect, connectAfterServerStartup, connectImmediately, equals, getDescription, getMuleContext, hashCode, isConnecting, isDoThreading, isInitialThread, setDoThreading, setMuleContextpublic static final int DEFAULT_FREQUENCY
public static final int DEFAULT_RETRY_COUNT
public static final int RETRY_COUNT_FOREVER
protected static final SimpleRetryConnectionStrategy.RetryCounter retryCounter
protected static final ThreadLocal called
protected void doConnect(Connectable connectable) throws FatalConnectException
doConnect in class AbstractConnectionStrategyFatalConnectExceptionpublic void resetState()
resetState in class AbstractConnectionStrategypublic int getRetryCount()
public void setRetryCount(int retryCount)
retryCount - number of retriespublic long getRetryFrequency()
public void setRetryFrequency(long retryFrequency)
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.