Interface QuotaExhaustionAction

    • Method Detail

      • action

        boolean action​(InternalSession is,
                       Map<String,​Long> existingSessions)
        Performs an action, when the session quota is exhausted. The action implementation should destroy at least one session (either by destroying an old session, or rejecting the new one) in order to adhere the session quota.
        Parameters:
        is - the to-be-actived InternalSession
        existingSessions - all existing sessions belonging to the same uuid (Map:sid->expiration_time)
        Returns:
        true if the session activation request should be rejected, false otherwise