com.sun.enterprise.web
Class PESessionLocker

java.lang.Object
  extended by org.apache.catalina.session.BaseSessionLocker
      extended by com.sun.enterprise.web.PESessionLocker
All Implemented Interfaces:
SessionLocker

public class PESessionLocker
extends BaseSessionLocker
implements SessionLocker

Author:
lwhite

Field Summary
 
Fields inherited from class org.apache.catalina.session.BaseSessionLocker
_context
 
Constructor Summary
PESessionLocker()
          Creates a new instance of PESessionLocker
PESessionLocker(Context ctx)
          Creates a new instance of PESessionLocker
 
Method Summary
 boolean lockSession(javax.servlet.ServletRequest request)
          lock the session associated with this request this will be a foreground lock checks for background lock to clear and does a decay poll loop to wait until it is clear; after 5 times it takes control for the foreground
protected  void threadSleep(long sleepTime)
           
 void unlockSession(javax.servlet.ServletRequest request)
          unlock the session associated with this request
 
Methods inherited from class org.apache.catalina.session.BaseSessionLocker
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.catalina.SessionLocker
init
 

Constructor Detail

PESessionLocker

public PESessionLocker()
Creates a new instance of PESessionLocker


PESessionLocker

public PESessionLocker(Context ctx)
Creates a new instance of PESessionLocker

Method Detail

lockSession

public boolean lockSession(javax.servlet.ServletRequest request)
                    throws javax.servlet.ServletException
lock the session associated with this request this will be a foreground lock checks for background lock to clear and does a decay poll loop to wait until it is clear; after 5 times it takes control for the foreground

Specified by:
lockSession in interface SessionLocker
Overrides:
lockSession in class BaseSessionLocker
Parameters:
request -
Throws:
javax.servlet.ServletException

threadSleep

protected void threadSleep(long sleepTime)

unlockSession

public void unlockSession(javax.servlet.ServletRequest request)
unlock the session associated with this request

Specified by:
unlockSession in interface SessionLocker
Overrides:
unlockSession in class BaseSessionLocker
Parameters:
request -


Copyright © 2012 GlassFish Community. All Rights Reserved.