Package org.glassfish.grizzly
Interface WriteHandler
-
public interface WriteHandlerCallback notification mechanism that signals the developer it's possible to write content.- Since:
- 2.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(Throwable t)Invoked when an error occurs processing the request asynchronously.voidonWritePossible()This callback will be invoked when the requirements as dictated by writer are met.
-
-
-
Method Detail
-
onWritePossible
void onWritePossible() throws ExceptionThis callback will be invoked when the requirements as dictated by writer are met.- Throws:
Exception-Exceptionmight be thrown by the custom handler code. This exception will be delegated for processing toonError(java.lang.Throwable).
-
onError
void onError(Throwable t)
Invoked when an error occurs processing the request asynchronously.- Parameters:
t- cause of error
-
-