Top Description Methods
org.glassfish.grizzly

public Interface ReadHandler


This class represents a call-back mechanism that will notify implementations as more input data becomes available to read without blocking.

Since
2.2

Method Summary

Modifier and TypeMethod and Description
public void
onAllDataRead()

Invoked when all data for the current request has been read.

public void
onDataAvailable()

Invoked when data is available to be read without blocking.

public void
onError(final Throwable
the error
t
)

Invoked when an error occurs processing the request asynchronously.

Method Detail

onAllDataReadback to summary
public void onAllDataRead() throws Exception

Invoked when all data for the current request has been read.

Exceptions
Exception:
Exception might be thrown by the custom handler code. This exception will be delegated for processing to onError(java.lang.Throwable).
onDataAvailableback to summary
public 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.

Exceptions
Exception:
Exception might be thrown by the custom handler code. This exception will be delegated for processing to onError(java.lang.Throwable).
onErrorback to summary
public void onError(final Throwable t)

Invoked when an error occurs processing the request asynchronously.

Parameters
t:Throwable

the error