|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.transport.AbstractConnectable
public abstract class AbstractConnectable
Provide a default dispatch (client) support for handling threads lifecycle and validation.
Field Summary | |
---|---|
protected boolean |
connected
|
protected boolean |
connecting
|
protected ConnectionStrategy |
connectionStrategy
|
protected AbstractConnector |
connector
|
protected boolean |
disposed
|
protected ImmutableEndpoint |
endpoint
|
protected Log |
logger
logger used by this class |
Constructor Summary | |
---|---|
AbstractConnectable(ImmutableEndpoint endpoint)
|
Method Summary | |
---|---|
void |
activate()
|
void |
connect()
Make the connection to the underlying transport. |
void |
disconnect()
Disconnect the from the underlying transport |
void |
dispose()
Template method to destroy any resources held by the Message Dispatcher |
protected void |
disposeAndLogException()
|
protected abstract void |
doConnect()
|
protected abstract void |
doDisconnect()
|
protected abstract void |
doDispose()
|
void |
exceptionThrown(Exception e)
|
protected String |
getConnectEventId(ImmutableEndpoint endpoint)
|
String |
getConnectionDescription()
Returns a string identifying the underlying resource |
Connector |
getConnector()
|
ImmutableEndpoint |
getEndpoint()
|
boolean |
isConnected()
Determines if this object is connected or not |
protected boolean |
isDoThreading()
|
void |
passivate()
|
void |
reconnect()
|
String |
toString()
|
boolean |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient Log logger
protected final ImmutableEndpoint endpoint
protected final AbstractConnector connector
protected boolean disposed
protected ConnectionStrategy connectionStrategy
protected volatile boolean connecting
protected volatile boolean connected
Constructor Detail |
---|
public AbstractConnectable(ImmutableEndpoint endpoint)
Method Detail |
---|
protected void disposeAndLogException()
public void exceptionThrown(Exception e)
exceptionThrown
in interface ExceptionListener
public boolean validate()
public void activate()
public void passivate()
public final void dispose()
public Connector getConnector()
public ImmutableEndpoint getEndpoint()
public void connect() throws Exception
Connectable
connect
in interface Connectable
Exception
public void disconnect() throws Exception
Connectable
disconnect
in interface Connectable
Exception
protected String getConnectEventId(ImmutableEndpoint endpoint)
public final boolean isConnected()
Connectable
isConnected
in interface Connectable
protected boolean isDoThreading()
public String getConnectionDescription()
getConnectionDescription
in interface Connectable
public void reconnect() throws Exception
Exception
protected abstract void doDispose()
protected abstract void doConnect() throws Exception
Exception
protected abstract void doDisconnect() throws Exception
Exception
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |