org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi
Interface WindowContextQuotaHandler

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultWindowContextQuotaHandler

public interface WindowContextQuotaHandler
extends Serializable

Author:
Gerhard Petracek

Method Summary
 void handleQuotaViolation()
          Handles a quota violation if #checkQuota returned true and the cleanup couldn't remove an old context
 boolean isWindowContextQuotaViolated(int activeWindowContextCount)
          Checks if the count of the currently active window-contexts is too high
 

Method Detail

isWindowContextQuotaViolated

boolean isWindowContextQuotaViolated(int activeWindowContextCount)
Checks if the count of the currently active window-contexts is too high

Parameters:
activeWindowContextCount - current window-context count
Returns:
true if the count is too high and a cleanup has to be triggered, false otherwise

handleQuotaViolation

void handleQuotaViolation()
Handles a quota violation if #checkQuota returned true and the cleanup couldn't remove an old context



Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.