org.mule.providers
Class AbstractConnectionStrategy

java.lang.Object
  extended byorg.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
 
Constructor Summary
AbstractConnectionStrategy()
           
 
Method Summary
 void connect(UMOConnectable connectable)
          Attempts to connect to a resource according the strategy implemented
protected abstract  void doConnect(UMOConnectable connectable)
           
protected  String getDescription(UMOConnectable connectable)
           
 boolean isDoThreading()
           
abstract  void resetState()
          Resets any state stored in the retry strategy
 void setDoThreading(boolean doThreading)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
logger used by this class

Constructor Detail

AbstractConnectionStrategy

public AbstractConnectionStrategy()
Method Detail

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.