Class QuotaExhaustionActionImpl

    • Constructor Detail

      • QuotaExhaustionActionImpl

        public QuotaExhaustionActionImpl()
    • Method Detail

      • action

        public abstract boolean action​(InternalSession is,
                                       Map<String,​Long> existingSessions)
        Description copied from interface: QuotaExhaustionAction
        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.
        Specified by:
        action in interface QuotaExhaustionAction
        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