public void expireSession ( PrimaryBackupSession session ) { if ( sessions . remove ( session . sessionId ( ) . id ( ) ) != null ) { session . expire ( ) ; listeners . forEach ( l -> l . onExpire ( session ) ) ; } }
Expires and removes a session from the sessions list .