Class PESessionLocker

    • 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.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:
        jakarta.servlet.ServletException
      • threadSleep

        protected void threadSleep​(long sleepTime)