public interface WriteListener extends EventListener
Modifier and Type | Method and Description |
---|---|
void |
onError(Throwable t)
Invoked when an error occurs writing data using the non-blocking APIs.
|
void |
onWritePossible()
When an instance of the WriteListener is registered with a
ServletOutputStream ,
this method will be invoked by the container the first time when it is possible
to write data. |
void onWritePossible() throws IOException
ServletOutputStream
,
this method will be invoked by the container the first time when it is possible
to write data. Subsequently the container will invoke this method if and only
if ServletOutputStream.isReady()
method
has been called and has returned false
.IOException
- if an I/O related error has occurred during processingvoid onError(Throwable t)
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.