it.remove();
}
else
{
long idleTime;
SessionConfig config = session.getConfig();
if( !session.isIdle( IdleStatus.BOTH_IDLE ) )
{
idleTime = config
.getIdleTimeInMillis( IdleStatus.BOTH_IDLE );
session.setIdle( IdleStatus.BOTH_IDLE,
idleTime > 0L
&& ( currentTime - session.getLastIoTime() ) > idleTime );
if( session.isIdle( IdleStatus.BOTH_IDLE ) )
session.getManagerFilterChain()
.sessionIdle( session,
IdleStatus.BOTH_IDLE );
}
if( !session.isIdle( IdleStatus.READER_IDLE ) )
{
idleTime = config
.getIdleTimeInMillis( IdleStatus.READER_IDLE );
session.setIdle( IdleStatus.READER_IDLE,
idleTime > 0L
&& ( currentTime - session.getLastReadTime() ) > idleTime );
if( session.isIdle( IdleStatus.READER_IDLE ) )
session.getManagerFilterChain()
.sessionIdle( session,
IdleStatus.READER_IDLE );
}
if( !session.isIdle( IdleStatus.WRITER_IDLE ) )
{
idleTime = config
.getIdleTimeInMillis( IdleStatus.WRITER_IDLE );
session.setIdle( IdleStatus.WRITER_IDLE,
idleTime > 0L
&& ( currentTime - session.getLastWriteTime() ) > idleTime );
if( session.isIdle( IdleStatus.WRITER_IDLE ) )