Java Reference
In-Depth Information
Listener
Callbacks
Description
This method is called whenever data is
available to read without blocking
ReadListener
void onDataAvail-
able()
This method is called when all the data
of ServletRequest has been read
void
onAllDataRead()
This method is called when an error or
exception occurs during request pro-
cessing
void onEr-
ror(Throwable t)
This method is called whenever it is
possible to write data without blocking
WriteListener
void onWritePoss-
ible()
This method is called when an error or
exception occurs during response pro-
cessing
void onEr-
ror(Throwable t)
The table that follows describes the new APIs for the non blocking I/O API:
Search WWH ::




Custom Search