public interface Connectable
extends org.mule.runtime.api.lifecycle.Lifecycle
| 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).
|
void 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–2017 MuleSoft, Inc.. All rights reserved.