org.mule.providers
Class AbstractConnectionStrategy
java.lang.Object
org.mule.providers.AbstractConnectionStrategy
- All Implemented Interfaces:
- ConnectionStrategy
- Direct Known Subclasses:
- SimpleRetryConnectionStrategy, SingleAttemptConnectionStrategy
public abstract class AbstractConnectionStrategy
- extends Object
- implements ConnectionStrategy
TODO document
Field Summary |
protected Log |
logger
logger used by this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected transient Log logger
- logger used by this class
AbstractConnectionStrategy
public AbstractConnectionStrategy()
connect
public final void connect(UMOConnectable connectable)
throws FatalConnectException
- Description copied from interface:
ConnectionStrategy
- Attempts to connect to a resource according the strategy implemented
- Specified by:
connect
in interface ConnectionStrategy
- Parameters:
connectable
- the object to connect to a resource
- Throws:
FatalConnectException
- is thrown if the strategy finally fails to make
a connection.
isDoThreading
public boolean isDoThreading()
setDoThreading
public void setDoThreading(boolean doThreading)
doConnect
protected abstract void doConnect(UMOConnectable connectable)
throws FatalConnectException
- Throws:
FatalConnectException
resetState
public abstract void resetState()
- Resets any state stored in the retry strategy
getDescription
protected String getDescription(UMOConnectable connectable)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.