Package com.google.apphosting.runtime
Class RequestState
- java.lang.Object
-
- com.google.apphosting.runtime.RequestState
-
public class RequestState extends Object
-
-
Constructor Summary
Constructors Constructor Description RequestState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforgetRequestThread(Thread thread)Forgets the given thread relative to this request.booleangetAllowNewRequestThreadCreation()booleanhasHardDeadlinePassed()booleanhasSoftDeadlinePassed()voidrecordRequestThread(Thread thread)Records the given thread as belonging to this request.Set<Thread>requestThreads()Returns a snapshot of the threads that belong to this request and that should terminate when the request terminates.voidsetAllowNewRequestThreadCreation(boolean allowNewRequestThreadCreation)voidsetHardDeadlinePassed(boolean hardDeadlinePassed)voidsetSoftDeadlinePassed(boolean softDeadlinePassed)
-
-
-
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.
-
-