public interface AsyncContext
extends javax.ws.rs.container.AsyncResponse
Modifier and Type | Interface and Description |
---|---|
static class |
AsyncContext.State
Asynchronous processing context state.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.