public class ManagerBasedConnectionSource<T extends FileSystem> extends Object implements ConnectionSource<T>
ConnectionSource that uses a FileConnectorConfig and a ConnectionManager to
ask for connections. It is necessary that all instances of this class release all the connections that it asked for.| Constructor and Description |
|---|
ManagerBasedConnectionSource(FileConnectorConfig config,
org.mule.runtime.core.api.connector.ConnectionManager connectionManager) |
| Modifier and Type | Method and Description |
|---|---|
T |
getConnection()
Gets an instance of
T, multiple calls to this method may return the same instance. |
void |
releaseConnection()
Release, if needed, the last instance retrieved by calling
ConnectionSource.getConnection() |
public ManagerBasedConnectionSource(FileConnectorConfig config, org.mule.runtime.core.api.connector.ConnectionManager connectionManager)
public T getConnection() throws org.mule.runtime.api.connection.ConnectionException
T, multiple calls to this method may return the same instance.getConnection in interface ConnectionSource<T extends FileSystem>Torg.mule.runtime.api.connection.ConnectionExceptionpublic void releaseConnection()
ConnectionSource.getConnection()releaseConnection in interface ConnectionSource<T extends FileSystem>Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.