com.sun.grizzly.streams
Class AbstractStreamWriter.DisposeBufferCompletionHandler

java.lang.Object
  extended by com.sun.grizzly.streams.AbstractStreamWriter.DisposeBufferCompletionHandler
All Implemented Interfaces:
CompletionHandler
Enclosing class:
AbstractStreamWriter

public static class AbstractStreamWriter.DisposeBufferCompletionHandler
extends Object
implements CompletionHandler


Constructor Summary
AbstractStreamWriter.DisposeBufferCompletionHandler(Buffer buffer)
           
 
Method Summary
 void cancelled(Connection connection)
          The I/O operation on the Connection was cancelled.
 void completed(Connection connection, Object result)
          The I/O operation on the Connection was completed.
protected  void disposeBuffer()
           
 void failed(Connection connection, Throwable throwable)
          The I/O operation on the Connection was failed.
 void updated(Connection connection, Object result)
          The callback method may be called, when there is some progress in I/O operation execution, but it is still not completed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStreamWriter.DisposeBufferCompletionHandler

public AbstractStreamWriter.DisposeBufferCompletionHandler(Buffer buffer)
Method Detail

cancelled

public void cancelled(Connection connection)
Description copied from interface: CompletionHandler
The I/O operation on the Connection was cancelled.

Specified by:
cancelled in interface CompletionHandler

failed

public void failed(Connection connection,
                   Throwable throwable)
Description copied from interface: CompletionHandler
The I/O operation on the Connection was failed.

Specified by:
failed in interface CompletionHandler
throwable - error, which occurred during I/O operation execution

completed

public void completed(Connection connection,
                      Object result)
Description copied from interface: CompletionHandler
The I/O operation on the Connection was completed.

Specified by:
completed in interface CompletionHandler
result - the I/O operation result

updated

public void updated(Connection connection,
                    Object result)
Description copied from interface: CompletionHandler
The callback method may be called, when there is some progress in I/O operation execution, but it is still not completed

Specified by:
updated in interface CompletionHandler
result - the current result

disposeBuffer

protected void disposeBuffer()


Copyright © 2009 SUN Microsystems. All Rights Reserved.