org.glassfish.grizzly.streams
Class StreamReaderDecorator.FeederCompletionHandler

java.lang.Object
  extended by org.glassfish.grizzly.streams.StreamReaderDecorator.FeederCompletionHandler
All Implemented Interfaces:
CompletionHandler
Enclosing class:
StreamReaderDecorator

protected class StreamReaderDecorator.FeederCompletionHandler
extends Object
implements CompletionHandler


Constructor Summary
StreamReaderDecorator.FeederCompletionHandler(FutureImpl future, CompletionHandler completionHandler)
           
 
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.
 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

StreamReaderDecorator.FeederCompletionHandler

public StreamReaderDecorator.FeederCompletionHandler(FutureImpl future,
                                                     CompletionHandler completionHandler)
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


Copyright © 2009 SUN Microsystems. All Rights Reserved.