Package javax.servlet
Interface AsyncListener
- 
- All Superinterfaces:
- java.util.EventListener
 
 public interface AsyncListener extends java.util.EventListenerListener for events associated with anAsyncContext.- Since:
- Servlet 3.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonComplete(AsyncEvent event)This event is fired after the call toAsyncContext.complete()has been processed by the container.voidonError(AsyncEvent event)This event is fired if an error occurs during an asynchronous operation but before the container takes any action as a result of the error.voidonStartAsync(AsyncEvent event)This event is fired if new call is made toServletRequest.startAsync()after the completion of theAsyncContextto which this listener was added.voidonTimeout(AsyncEvent event)This event is fired if an asynchronous operation times out but before the container takes any action as a result of the timeout.
 
- 
- 
- 
Method Detail- 
onCompletevoid onComplete(AsyncEvent event) throws java.io.IOException This event is fired after the call toAsyncContext.complete()has been processed by the container.- Parameters:
- event- Provides access to the objects associated with the event
- Throws:
- java.io.IOException- Should be thrown if an I/O error occurs during the processing of the event
 
 - 
onTimeoutvoid onTimeout(AsyncEvent event) throws java.io.IOException This event is fired if an asynchronous operation times out but before the container takes any action as a result of the timeout.- Parameters:
- event- Provides access to the objects associated with the event
- Throws:
- java.io.IOException- Should be thrown if an I/O error occurs during the processing of the event
 
 - 
onErrorvoid onError(AsyncEvent event) throws java.io.IOException This event is fired if an error occurs during an asynchronous operation but before the container takes any action as a result of the error.- Parameters:
- event- Provides access to the objects associated with the event
- Throws:
- java.io.IOException- Should be thrown if an I/O error occurs during the processing of the event
 
 - 
onStartAsyncvoid onStartAsync(AsyncEvent event) throws java.io.IOException This event is fired if new call is made toServletRequest.startAsync()after the completion of theAsyncContextto which this listener was added.- Parameters:
- event- Provides access to the objects associated with the event
- Throws:
- java.io.IOException- Should be thrown if an I/O error occurs during the processing of the event
 
 
- 
 
-