Package org.glassfish.jersey.servlet.spi
Interface AsyncContextDelegate
-
- All Known Implementing Classes:
AsyncContextDelegateProviderImpl.ExtensionImpl
public interface AsyncContextDelegate
Utilized by the Servlet container response writer to deal with the container async features. Individual instances are created byAsyncContextDelegateProvider
.- See Also:
AsyncContextDelegateProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
complete()
Invoked upon a response writing completion when the response write is either committed or canceled.void
suspend()
Invoked by the superiorContainerResponseWriter
responsible for writing the response when processing is to be suspended.
-
-
-
Method Detail
-
suspend
void suspend() throws java.lang.IllegalStateException
Invoked by the superiorContainerResponseWriter
responsible for writing the response when processing is to be suspended. An implementation can throw anUnsupportedOperationException
if suspend is not supported (the default behavior).- Throws:
java.lang.IllegalStateException
- if underlyingservlet request
throws an exception.- See Also:
ContainerResponseWriter.suspend(long, java.util.concurrent.TimeUnit, org.glassfish.jersey.server.spi.ContainerResponseWriter.TimeoutHandler)
-
complete
void complete()
Invoked upon a response writing completion when the response write is either committed or canceled.
-
-