public interface WriteListener extends java.util.EventListener
|Modifier and Type||Method and Description|
Invoked when an error occurs writing data using the non-blocking APIs.
When an instance of the WriteListener is registered with a
void onWritePossible() throws java.io.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 the
ServletOutputStream.isReady()method has been called and has returned a value of
falseand a write operation has subsequently become possible.
java.io.IOException- if an I/O related error has occurred during processing
void onError(java.lang.Throwable t)
t- the throwable to indicate why the write operation failed