org.glassfish.grizzly
Interface CompletionHandler<E>

All Known Implementing Classes:
AbstractStreamWriter.DisposeBufferCompletionHandler, CompletionHandlerAdapter, EmptyCompletionHandler, SSLStreamWriter.HandshakeCompletionHandler, TCPNIOServerConnection.RegisterAcceptedChannelCompletionHandler, TransformerInput.TransformerCompletionHandler, UDPNIOTransport.RegisterChannelCompletionHandler

public interface CompletionHandler<E>

Interface, which will be used by Grizzly to notify about asynchronous I/O operations status updates.

Author:
Alexey Stashok

Method Summary
 void cancelled()
          The operation was cancelled.
 void completed(E result)
          The operation was completed.
 void failed(Throwable throwable)
          The operation was failed.
 void updated(E result)
          The callback method may be called, when there is some progress in operation execution, but it is still not completed
 

Method Detail

cancelled

void cancelled()
The operation was cancelled.


failed

void failed(Throwable throwable)
The operation was failed.

Parameters:
throwable - error, which occurred during operation execution

completed

void completed(E result)
The operation was completed.

Parameters:
result - the operation result

updated

void updated(E result)
The callback method may be called, when there is some progress in operation execution, but it is still not completed

Parameters:
result - the current result


Copyright © 2012 Oracle Corporation. All Rights Reserved.