|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProcessingContext
Injectable processing context that can be used to control various aspects of a single request processing, e.g. the threading model.
| Nested Class Summary | |
|---|---|
static class |
ProcessingContext.State
Processing context state. |
| Method Summary | |
|---|---|
ProcessingContext.State |
state()
Get the current state of the processing context. |
boolean |
trySuspend()
Try to suspend the current request processing. |
| Methods inherited from interface deprecated.javax.ws.rs.ExecutionContext |
|---|
cancel, getResponse, isCancelled, isDone, isSuspended, resume, resume, setResponse, setSuspendTimeout, suspend, suspend, suspend |
| Method Detail |
|---|
ProcessingContext.State state()
boolean trySuspend()
suspend the current request processing.
Unlike the suspend() method, this method does not throw an exception
in case the suspend operation fails. Instead, the method returns true
if the request processing has been suspended successfully, returns false
otherwise.
true if the request processing has been suspended successfully,
returns false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||