public interface AsyncContext extends AsyncResponse
Modifier and Type | Interface and Description |
---|---|
static class |
AsyncContext.State
Asynchronous processing context state.
|
NO_TIMEOUT
Modifier and Type | Method and Description |
---|---|
void |
invokeManaged(org.glassfish.jersey.internal.util.Producer<Response> producer)
Invoke the provided response producer in a Jersey-managed asynchronous thread.
|
boolean |
suspend()
Suspend the current asynchronous processing context.
|
cancel, cancel, cancel, isCancelled, isDone, isSuspended, register, register, register, register, resume, resume, setTimeout, setTimeoutHandler
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(org.glassfish.jersey.internal.util.Producer<Response> producer)
producer
- response producer.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.