Interface AsyncListener

All Superinterfaces:
EventListener

public interface AsyncListener
extends EventListener
Listener that will be notified in the event that an asynchronous operation initiated on a ServletRequest to which the listener had been added has completed, timed out, or resulted in an error.
Since:
Servlet 3.0
  • Method Summary

    Modifier and Type Method Description
    void onComplete​(AsyncEvent event)
    Notifies this AsyncListener that an asynchronous operation has been completed.
    void onError​(AsyncEvent event)
    Notifies this AsyncListener that an asynchronous operation has failed to complete.
    void onStartAsync​(AsyncEvent event)
    Notifies this AsyncListener that a new asynchronous cycle is being initiated via a call to one of the ServletRequest.startAsync() methods.
    void onTimeout​(AsyncEvent event)
    Notifies this AsyncListener that an asynchronous operation has timed out.