org.springframework.integration.sftp
Interface SftpSessionPool

All Known Implementing Classes:
QueuedSftpSessionPool

public interface SftpSessionPool

Holds instances of SftpSession since they are stateful and might be in use while another operation runs.


Method Summary
 SftpSession getSession()
          Returns a session that can be used to connect to an sftp instance and perform operations
 void release(SftpSession session)
          Releases the session.
 

Method Detail

getSession

SftpSession getSession()
                       throws java.lang.Exception
Returns a session that can be used to connect to an sftp instance and perform operations

Returns:
the session from the pool ready to be connected to.
Throws:
java.lang.Exception - if any fault occurs when trying to connect to the remote server

release

void release(SftpSession session)
Releases the session.

Parameters:
session - the session to relinquish / renew