public interface AsyncListener
extends java.util.EventListener
AsyncContext
.Modifier and Type | Method and Description |
---|---|
void |
onComplete(AsyncEvent event)
This event is fired after the call to
AsyncContext.complete()
has been processed by the container. |
void |
onError(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.
|
void |
onStartAsync(AsyncEvent event)
This event is fired if new call is made to
ServletRequest.startAsync() after the completion of the
AsyncContext to which this listener was added. |
void |
onTimeout(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.
|
void onComplete(AsyncEvent event) throws java.io.IOException
AsyncContext.complete()
has been processed by the container.event
- Provides access to the objects associated with the eventjava.io.IOException
- Should be thrown if an I/O error occurs during the
processing of the eventvoid onTimeout(AsyncEvent event) throws java.io.IOException
event
- Provides access to the objects associated with the eventjava.io.IOException
- Should be thrown if an I/O error occurs during the
processing of the eventvoid onError(AsyncEvent event) throws java.io.IOException
event
- Provides access to the objects associated with the eventjava.io.IOException
- Should be thrown if an I/O error occurs during the
processing of the eventvoid onStartAsync(AsyncEvent event) throws java.io.IOException
ServletRequest.startAsync()
after the completion of the
AsyncContext
to which this listener was added.event
- Provides access to the objects associated with the eventjava.io.IOException
- Should be thrown if an I/O error occurs during the
processing of the eventCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.