org.glassfish.grizzly
Class EmptyCompletionHandler<E>

java.lang.Object
  extended by org.glassfish.grizzly.EmptyCompletionHandler<E>
All Implemented Interfaces:
CompletionHandler<E>
Direct Known Subclasses:
TCPNIOServerConnection.RegisterAcceptedChannelCompletionHandler, TransformerInput.TransformerCompletionHandler, UDPNIOTransport.RegisterChannelCompletionHandler

public class EmptyCompletionHandler<E>
extends Object
implements CompletionHandler<E>

Empty implementation for CompletionHandler interface.

Author:
Alexey Stashok

Constructor Summary
EmptyCompletionHandler()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyCompletionHandler

public EmptyCompletionHandler()
Method Detail

cancelled

public void cancelled()
The operation was cancelled.

Specified by:
cancelled in interface CompletionHandler<E>

failed

public void failed(Throwable throwable)
The operation was failed.

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

completed

public void completed(E result)
The operation was completed.

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

updated

public void updated(E result)
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<E>
Parameters:
result - the current result


Copyright © 2013 Oracle Corporation. All Rights Reserved.