public class RequestState extends Object
| Constructor and Description |
|---|
RequestState() |
| Modifier and Type | Method and Description |
|---|---|
void |
forgetRequestThread(Thread thread)
Forgets the given thread relative to this request.
|
boolean |
getAllowNewRequestThreadCreation() |
boolean |
hasHardDeadlinePassed() |
boolean |
hasSoftDeadlinePassed() |
void |
recordRequestThread(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.
|
void |
setAllowNewRequestThreadCreation(boolean allowNewRequestThreadCreation) |
void |
setHardDeadlinePassed(boolean hardDeadlinePassed) |
void |
setSoftDeadlinePassed(boolean softDeadlinePassed) |
public boolean getAllowNewRequestThreadCreation()
public void setAllowNewRequestThreadCreation(boolean allowNewRequestThreadCreation)
public boolean hasSoftDeadlinePassed()
public void setSoftDeadlinePassed(boolean softDeadlinePassed)
public boolean hasHardDeadlinePassed()
public void setHardDeadlinePassed(boolean hardDeadlinePassed)
public void recordRequestThread(Thread thread)
public void forgetRequestThread(Thread thread)
Copyright © 2022. All rights reserved.