protected boolean isIdleLongerThan ( int sec ) { long now = System . currentTimeMillis ( ) ; try ( Lock ignored = locker . lockIfNotHeld ( ) ) { return ( ( sessionData . getAccessedTime ( ) + ( sec * 1000 ) ) <= now ) ; } }
Check if the Session has been idle longer than a number of seconds .