@ApplicationScoped public class DefaultWindowContextQuotaHandler extends Object implements WindowContextQuotaHandler
| Constructor and Description |
|---|
DefaultWindowContextQuotaHandler()
Default constructor required by proxy libs
|
DefaultWindowContextQuotaHandler(WindowContextConfig windowContextConfig)
Constructor used by the container for creating the
WindowContextQuotaHandler based on the given
WindowContextConfig |
| Modifier and Type | Method and Description |
|---|---|
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
|
public DefaultWindowContextQuotaHandler()
@Inject public DefaultWindowContextQuotaHandler(WindowContextConfig windowContextConfig)
WindowContextQuotaHandler based on the given
WindowContextConfigwindowContextConfig - current window-context-configpublic boolean isWindowContextQuotaViolated(int activeWindowContextCount)
isWindowContextQuotaViolated in interface WindowContextQuotaHandleractiveWindowContextCount - current window-context countpublic void handleQuotaViolation()
handleQuotaViolation in interface WindowContextQuotaHandlerCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.