|
DRAFT | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncListener
Listener that will be notified when an asynchronous operation that was
started on a ServletRequest by a call to ServletRequest#startAsync
or ServletRequest#startAsync(ServletRequest, ServletResponse)
completes or times out.
Method Summary | |
---|---|
void |
onComplete(AsyncEvent event)
Notifies this AsyncListener that an asynchronous operation started on the ServletRequest with which this AsyncListener was registered has been completed. |
void |
onTimeout(AsyncEvent event)
Notifies this AsyncListener that an asynchronous operation started on the ServletRequest with which this AsyncListener was registered has timed out. |
Method Detail |
---|
void onComplete(AsyncEvent event) throws java.io.IOException
event
- the AsyncEvent containing the request and response
objects that were used when this AsyncListener was registered via a
call to ServletRequest#addAsyncListener(AsyncListener)
or ServletRequest#addAsyncListener(AsyncListener,
ServletRequest, ServletResponse)
java.io.IOException
- if an I/O exception occurred during the processing
of the given AsyncEventvoid onTimeout(AsyncEvent event) throws java.io.IOException
event
- the AsyncEvent containing the request and response
objects that were used when this AsyncListener was registered via a
call to ServletRequest#addAsyncListener(AsyncListener)
or ServletRequest#addAsyncListener(AsyncListener,
ServletRequest, ServletResponse)
java.io.IOException
- if an I/O exception occurred during the processing
of the given AsyncEvent
|
DRAFT | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.