Class RequestState

java.lang.Object
com.google.apphosting.runtime.RequestState

public class RequestState extends Object
  • Constructor Details

    • RequestState

      public RequestState()
  • Method Details

    • 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.