Class RequestState


  • public class RequestState
    extends Object
    • Constructor Detail

      • RequestState

        public RequestState()
    • Method Detail

      • getAllowNewRequestThreadCreation

        public boolean getAllowNewRequestThreadCreation()
      • setAllowNewRequestThreadCreation

        public void setAllowNewRequestThreadCreation​(boolean allowNewRequestThreadCreation)
      • hasSoftDeadlinePassed

        public boolean hasSoftDeadlinePassed()
      • setSoftDeadlinePassed

        public void setSoftDeadlinePassed​(boolean softDeadlinePassed)
      • hasHardDeadlinePassed

        public boolean hasHardDeadlinePassed()
      • setHardDeadlinePassed

        public void setHardDeadlinePassed​(boolean hardDeadlinePassed)
      • recordRequestThread

        public void recordRequestThread​(Thread thread)
        Records the given thread as belonging to this request. That means that it should terminate when the request terminates.
      • forgetRequestThread

        public void forgetRequestThread​(Thread thread)
        Forgets the given thread relative to this request. Typically this happens just before the thread terminates.
      • requestThreads

        public Set<Thread> requestThreads()
        Returns a snapshot of the threads that belong to this request and that should terminate when the request terminates.