public interface ReadHandler
This class represents a call-back mechanism that will notify implementations as more input data becomes available to read without blocking.
| Modifier and Type | Method and Description |
|---|---|
void |
onAllDataRead()
Invoked when all data for the current request has been read.
|
void |
onDataAvailable()
Invoked when data is available to be read without blocking.
|
void |
onError(Throwable t)
Invoked when an error occurs processing the request asynchronously.
|
void onDataAvailable()
throws Exception
Invoked when data is available to be read without blocking. Data must be consumed by the handler implementation before re-registering.
Exception, - Exception might be thrown by the custom
handler code. This exception will be delegated for processing to
onError(java.lang.Throwable).Exceptionvoid onError(Throwable t)
Invoked when an error occurs processing the request asynchronously.
t - the errorvoid onAllDataRead()
throws Exception
Invoked when all data for the current request has been read.
Exception, - Exception might be thrown by the custom
handler code. This exception will be delegated for processing to
onError(java.lang.Throwable).ExceptionCopyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.