org.glassfish.jersey.server.internal.process
Interface AsyncContext
- All Superinterfaces:
- AsyncResponse
public interface AsyncContext
- extends AsyncResponse
Injectable asynchronous processing context that can be used to control various aspects
of asynchronous processing of a single request.
- Author:
- Marek Potociar (marek.potociar at oracle.com)
|
Method Summary |
void |
invokeManaged(Producer<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 |
suspend
boolean suspend()
- Suspend the current asynchronous processing context.
The method returns
true if the context has been successfully suspended,
false otherwise.
- Returns:
true if the request processing has been suspended successfully suspended,
false otherwise.
invokeManaged
void invokeManaged(Producer<Response> producer)
- Invoke the provided response producer in a Jersey-managed asynchronous thread.
- Parameters:
producer - response producer.
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.