Package com.iplanet.dpro.session.service
Class QuotaExhaustionActionImpl
- java.lang.Object
-
- com.iplanet.dpro.session.service.QuotaExhaustionActionImpl
-
- All Implemented Interfaces:
QuotaExhaustionAction
- Direct Known Subclasses:
DestroyAllAction,DestroyNextExpiringAction,DestroyOldestAction
public abstract class QuotaExhaustionActionImpl extends Object implements QuotaExhaustionAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuotaExhaustionActionImpl.SetBlockingQueue<T>
-
Constructor Summary
Constructors Constructor Description QuotaExhaustionActionImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanaction(InternalSession is, Map<String,Long> existingSessions)Performs an action, when the session quota is exhausted.protected voiddestroy(String sessionId, Map<String,Long> sessions)
-
-
-
Method Detail
-
action
public abstract boolean action(InternalSession is, Map<String,Long> existingSessions)
Description copied from interface:QuotaExhaustionActionPerforms 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:
actionin interfaceQuotaExhaustionAction- Parameters:
is- the to-be-actived InternalSessionexistingSessions- all existing sessions belonging to the same uuid (Map:sid->expiration_time)- Returns:
trueif the session activation request should be rejected,falseotherwise
-
-