org.glassfish.grizzly.streams
Class AbstractStreamWriter.DisposeBufferCompletionHandler

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

public static class AbstractStreamWriter.DisposeBufferCompletionHandler
extends java.lang.Object
implements CompletionHandler


Constructor Summary
AbstractStreamWriter.DisposeBufferCompletionHandler(Buffer buffer)
           
 
Method Summary
 void cancelled()
          The operation was cancelled.
 void completed(java.lang.Object result)
          The operation was completed.
protected  void disposeBuffer()
           
 void failed(java.lang.Throwable throwable)
          The operation was failed.
 void updated(java.lang.Object result)
          The callback method may be called, when there is some progress in 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()
Description copied from interface: CompletionHandler
The operation was cancelled.

Specified by:
cancelled in interface CompletionHandler

failed

public void failed(java.lang.Throwable throwable)
Description copied from interface: CompletionHandler
The operation was failed.

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

completed

public void completed(java.lang.Object result)
Description copied from interface: CompletionHandler
The operation was completed.

Specified by:
completed in interface CompletionHandler
Parameters:
result - the operation result

updated

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

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

disposeBuffer

protected void disposeBuffer()


Copyright © 2011 Oracle Corpration. All Rights Reserved.