|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncContext
Injectable asynchronous processing context that can be used to control various aspects of asynchronous processing of a single request.
| Nested Class Summary | |
|---|---|
static class |
AsyncContext.Factory
Asynchronous processing context injection factory. |
static class |
AsyncContext.State
Asynchronous processing context state. |
| Field Summary |
|---|
| Fields inherited from interface javax.ws.rs.container.AsyncResponse |
|---|
NO_TIMEOUT |
| Method Summary | |
|---|---|
void |
invokeManaged(Producer<javax.ws.rs.core.Response> producer)
Invoke the provided response producer in a Jersey-managed asynchronous thread. |
boolean |
suspend()
Suspend the current asynchronous processing context. |
| Methods inherited from interface javax.ws.rs.container.AsyncResponse |
|---|
cancel, cancel, cancel, isCancelled, isDone, isSuspended, register, register, register, register, resume, resume, setTimeout, setTimeoutHandler |
| Method Detail |
|---|
boolean suspend()
true if the context has been successfully suspended,
false otherwise.
true if the request processing has been suspended successfully suspended,
false otherwise.void invokeManaged(Producer<javax.ws.rs.core.Response> producer)
producer - response producer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||