Interface ContinuationListener

  • All Superinterfaces:
    java.util.EventListener

    @Deprecated
    public interface ContinuationListener
    extends java.util.EventListener
    Deprecated.
    use Servlet 3.0 AsyncContext instead
    A Continuation Listener

    A ContinuationListener may be registered with a call to Continuation.addContinuationListener(ContinuationListener).

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void onComplete​(Continuation continuation)
      Deprecated.
      Called when a continuation life cycle is complete and after any calls to ServletRequestListener.requestDestroyed(javax.servlet.ServletRequestEvent) The response may still be written to during the call.
      void onTimeout​(Continuation continuation)
      Deprecated.
      Called when a suspended continuation has timed out.
    • Method Detail

      • onComplete

        void onComplete​(Continuation continuation)
        Deprecated.
        Called when a continuation life cycle is complete and after any calls to ServletRequestListener.requestDestroyed(javax.servlet.ServletRequestEvent) The response may still be written to during the call.
        Parameters:
        continuation - the continuation
      • onTimeout

        void onTimeout​(Continuation continuation)
        Deprecated.
        Called when a suspended continuation has timed out. The response may be written to and the methods Continuation.resume() or Continuation.complete() may be called by a onTimeout implementation,
        Parameters:
        continuation - the continuation