org.hippoecm.hst.core.container
Class JCRSessionStatefulConcurrencyValve

java.lang.Object
  extended by org.hippoecm.hst.core.container.AbstractValve
      extended by org.hippoecm.hst.core.container.JCRSessionStatefulConcurrencyValve
All Implemented Interfaces:
Valve

public class JCRSessionStatefulConcurrencyValve
extends AbstractValve

A JCRSessionStatefulConcurrencyValve makes sure that from this valve on, requests that have a sessionstateful jcr session, in other words, a jcr session tied to their HttpSession, will be processed synchronized. Note that jcr session from a session pool are *never* sessionstateful, and should never be processed synchronized as the session pools internal housekeeping will be blocked as well then.


Field Summary
protected  long maxRefreshIntervalOnLazySession
           
 
Fields inherited from class org.hippoecm.hst.core.container.AbstractValve
alwaysRedirectLocationToAbsoluteUrl, componentFactory, componentInvoker, componentWindowFactory, containerConfiguration, defaultPageErrorHandler, hstManager, hstQueryManagerFactory, linkCreator, log, requestContextComponent, siteMapMatcher, siteMenusManager, urlFactory
 
Constructor Summary
JCRSessionStatefulConcurrencyValve()
           
 
Method Summary
 void invoke(ValveContext context)
          Invoke this valve
 void setMaxRefreshIntervalOnLazySession(long maxRefreshIntervalOnLazySession)
           
 
Methods inherited from class org.hippoecm.hst.core.container.AbstractValve
destroy, findComponentWindow, findErrorCodeSendingWindow, getComponentFactory, getComponentInvoker, getComponentWindowFactory, getContainerConfiguration, getDefaultPageErrorHandler, getHstManager, getHstQueryManagerFactory, getHstSiteMenusManager, getLinkCreator, getPageErrors, getRequestContextComponent, getSiteMapMatcher, getUrlFactory, handleComponentExceptions, initialize, isAlwaysRedirectLocationToAbsoluteUrl, setAlwaysRedirectLocationToAbsoluteUrl, setComponentFactory, setComponentInvoker, setComponentWindowFactory, setContainerConfiguration, setDefaultPageErrorHandler, setHstManager, setHstQueryManagerFactory, setLinkCreator, setRequestContextComponent, setSiteMapMatcher, setSiteMenusManager, setUrlFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxRefreshIntervalOnLazySession

protected long maxRefreshIntervalOnLazySession
Constructor Detail

JCRSessionStatefulConcurrencyValve

public JCRSessionStatefulConcurrencyValve()
Method Detail

setMaxRefreshIntervalOnLazySession

public void setMaxRefreshIntervalOnLazySession(long maxRefreshIntervalOnLazySession)

invoke

public void invoke(ValveContext context)
            throws ContainerException
Description copied from interface: Valve
Invoke this valve

Specified by:
invoke in interface Valve
Specified by:
invoke in class AbstractValve
Throws:
ContainerException


Copyright © 2008-2012 Hippo. All Rights Reserved.