mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darren Shepherd (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SSHD-322) Add ClientSession.isClosed()
Date Wed, 14 May 2014 15:03:16 GMT
Darren Shepherd created SSHD-322:

             Summary: Add ClientSession.isClosed() 
                 Key: SSHD-322
                 URL: https://issues.apache.org/jira/browse/SSHD-322
             Project: MINA SSHD
          Issue Type: Improvement
    Affects Versions: 0.11.0
            Reporter: Darren Shepherd
            Priority: Minor

A way for an external component to check and see if a ClientSession is closed it particularly
useful in some situations.  For example, if you are pooling ClientSession objects you could
use isClosed() to valid the object as it is added and removed from the pool.

Currently you can detected a closed session with a Session Listener, but that requires that
you store the state somewhere else if you need to refer back to it in the future.

This message was sent by Atlassian JIRA

View raw message