Package org.glassfish.jersey.server
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAsyncContext.StateAsynchronous processing context state.
-
Field Summary
-
Fields inherited from interface jakarta.ws.rs.container.AsyncResponse
NO_TIMEOUT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinvokeManaged(Producer<Response> producer)Invoke the provided response producer in a Jersey-managed asynchronous thread.booleansuspend()Suspend the current asynchronous processing context.-
Methods inherited from interface jakarta.ws.rs.container.AsyncResponse
cancel, cancel, cancel, isCancelled, isDone, isSuspended, register, register, register, register, resume, resume, setTimeout, setTimeoutHandler
-
-