Package com.sun.enterprise.web
Class PESessionLocker
- java.lang.Object
-
- org.apache.catalina.session.BaseSessionLocker
-
- com.sun.enterprise.web.PESessionLocker
-
- All Implemented Interfaces:
SessionLocker
public class PESessionLocker extends BaseSessionLocker
- Author:
- lwhite
-
-
Field Summary
-
Fields inherited from class org.apache.catalina.session.BaseSessionLocker
_context
-
-
Constructor Summary
Constructors Constructor Description PESessionLocker()Creates a new instance of PESessionLockerPESessionLocker(Context ctx)Creates a new instance of PESessionLocker
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanlockSession(jakarta.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 foregroundprotected voidthreadSleep(long sleepTime)voidunlockSession(jakarta.servlet.ServletRequest request)unlock the session associated with this request-
Methods inherited from class org.apache.catalina.session.BaseSessionLocker
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(jakarta.servlet.ServletRequest request) throws jakarta.servlet.ServletExceptionlock 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:
lockSessionin interfaceSessionLocker- Overrides:
lockSessionin classBaseSessionLocker- Parameters:
request-- Throws:
jakarta.servlet.ServletException
-
threadSleep
protected void threadSleep(long sleepTime)
-
unlockSession
public void unlockSession(jakarta.servlet.ServletRequest request)
unlock the session associated with this request- Specified by:
unlockSessionin interfaceSessionLocker- Overrides:
unlockSessionin classBaseSessionLocker- Parameters:
request-
-
-