public List < Long > getTimedOutSessions ( ) { List < Long > ret = new ArrayList <> ( ) ; synchronized ( mSessions ) { for ( Entry < Long , SessionInfo > entry : mSessions . entrySet ( ) ) { if ( entry . getValue ( ) . timeout ( ) ) { ret . add ( entry . getKey ( ) ) ; } } } return ret ; }
Gets the sessions that timed out .