Interface AsyncContext

All Superinterfaces:

public interface AsyncContext extends AsyncResponse
Injectable asynchronous processing context that can be used to control various aspects of asynchronous processing of a single request.
Marek Potociar
  • Method Details

    • suspend

      boolean suspend()
      Suspend the current asynchronous processing context. The method returns true if the context has been successfully suspended, false otherwise.
      true if the request processing has been suspended successfully suspended, false otherwise.
    • invokeManaged

      void invokeManaged(org.glassfish.jersey.internal.util.Producer<Response> producer)
      Invoke the provided response producer in a Jersey-managed asynchronous thread.
      producer - response producer.