Top Description Methods
org.glassfish.grizzly

public Interface WriteHandler


Callback notification mechanism that signals the developer it's possible to write content.
Since
2.2

Method Summary

Modifier and TypeMethod and Description
public void
onError(final Throwable
cause of error
t
)

Invoked when an error occurs processing the request asynchronously.

public void
onWritePossible()

This callback will be invoked when the requirements as dictated by writer are met.

Method Detail

onErrorback to summary
public void onError(final Throwable t)

Invoked when an error occurs processing the request asynchronously.

Parameters
t:Throwable

cause of error

onWritePossibleback to summary
public void onWritePossible() throws Exception

This callback will be invoked when the requirements as dictated by writer are met.

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