Top Description Methods
jakarta.servlet

public Interface WriteListener

extends EventListener
Imports
java.io.IOException

Receives notification of write events when using non-blocking IO.
Since
Servlet 3.1

Method Summary

Modifier and TypeMethod and Description
public void
onError(Throwable
The throwable that represents the error that occurred
throwable
)

Invoked if an error occurs while writing the response.

public void
onWritePossible()

Invoked when it it possible to write data without blocking.

Method Detail

onErrorback to summary
public void onError(Throwable throwable)

Invoked if an error occurs while writing the response.

Parameters
throwable:Throwable

The throwable that represents the error that occurred

onWritePossibleback to summary
public void onWritePossible() throws IOException

Invoked when it it possible to write data without blocking. The container will invoke this method the first time for a request as soon as data can be written. Subsequent invocations will only occur if a call to ServletOutputStream#isReady() has returned false and it has since become possible to write data.

Exceptions
IOException:
if an I/O error occurs while processing this event