org.glassfish.jersey.servlet.spi
Interface AsyncContextDelegate


public interface AsyncContextDelegate

Utilized by the Servlet container response writer to deal with the container async features. Individual instances are created by AsyncContextDelegateProvider.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com)
See Also:
AsyncContextDelegateProvider

Method Summary
 void complete()
          Invoked upon a response writing completion when the response write is either committed or canceled.
 void suspend()
          Invoked by the superior ContainerResponseWriter responsible for writing the response when processing is to be suspended.
 

Method Detail

suspend

void suspend()
             throws IllegalStateException
Invoked by the superior ContainerResponseWriter responsible for writing the response when processing is to be suspended. An implementation can throw an UnsupportedOperationException if suspend is not supported (the default behavior).

Throws:
IllegalStateException - if underlying servlet 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.



Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.