public class StaticConnectionSource<T extends FileSystem> extends Object implements ConnectionSource<T>
ConnectionSource that is based on an instance of FileSystem, it will always return
the same instance when calling ConnectionSource.getConnection() and it will do nothing when
calling ConnectionSource.releaseConnection()| Constructor and Description |
|---|
StaticConnectionSource(T fileSystem) |
| 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 StaticConnectionSource(T fileSystem)
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.