org.glassfish.grizzly
Interface WriteHandler


public interface WriteHandler

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

Since:
2.2

Method Summary
 void onError(Throwable t)
           Invoked when an error occurs processing the request asynchronously.
 void onWritePossible()
          This callback will be invoked when the requirements as dictated by writer are met.
 

Method Detail

onWritePossible

void onWritePossible()
                     throws Exception
This callback will be invoked when the requirements as dictated by writer are met.

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

onError

void onError(Throwable t)

Invoked when an error occurs processing the request asynchronously.



Copyright © 2012 Oracle Corporation. All Rights Reserved.