org.mule.api.transport
Interface ConnectionStrategy

All Known Implementing Classes:
AbstractConnectionStrategy, SimpleRetryConnectionStrategy, SingleAttemptConnectionStrategy

public interface ConnectionStrategy

Allows developers to plug in customised reconnection behaviour


Method Summary
 void connect(Connectable connectable)
          Attempts to connect to a resource according the strategy implemented
 

Method Detail

connect

void connect(Connectable connectable)
             throws FatalConnectException
Attempts to connect to a resource according the strategy implemented

Parameters:
connectable - the object to connect to a resource
Throws:
FatalConnectException - is thrown if the strategy finally fails to make a connection.


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.