public interface Connectable extends Lifecycle
PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Make the connection to the underlying transport.
|
void |
disconnect()
Disconnect the from the underlying transport
|
String |
getConnectionDescription()
Returns a string identifying the underlying resource
|
boolean |
isConnected()
Determines if this object is connected or not
|
RetryContext |
validateConnection(RetryContext retryContext)
Test whether the connector is able to connect to its resource(s).
|
initialisedisposevoid connect()
throws Exception
Exceptionvoid disconnect()
throws Exception
Exceptionboolean isConnected()
String getConnectionDescription()
RetryContext validateConnection(RetryContext retryContext)
RetryContext.setOk() when no problems found (or no validation required).
RetryContext.setFailed(Throwable) with a root cause for a connection failure.
RetryContext.isOk(). The failure, if any, will be
provided via the RetryContext.getLastFailure().Exception - if the connector fails to connect @param retryContextCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.