Package com.google.apphosting.runtime
Class RequestState
java.lang.Object
com.google.apphosting.runtime.RequestState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforgetRequestThread(Thread thread) Forgets the given thread relative to this request.booleanbooleanbooleanvoidrecordRequestThread(Thread thread) Records the given thread as belonging to this request.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)
-
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
Records the given thread as belonging to this request. That means that it should terminate when the request terminates. -
forgetRequestThread
Forgets the given thread relative to this request. Typically this happens just before the thread terminates. -
requestThreads
Returns a snapshot of the threads that belong to this request and that should terminate when the request terminates.
-