Class CompletionHandler<E>

  • Type Parameters:
    E - result type.

    public abstract class CompletionHandler<E>
    extends java.lang.Object
    A callback to notify about asynchronous I/O operations status updates.
    Author:
    Alexey Stashok
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancelled()
      The operation was cancelled.
      void completed​(E result)
      The operation was completed.
      void failed​(java.lang.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

      • CompletionHandler

        public CompletionHandler()
    • Method Detail

      • cancelled

        public void cancelled()
        The operation was cancelled.
      • failed

        public void failed​(java.lang.Throwable throwable)
        The operation was failed.
        Parameters:
        throwable - error, which occurred during operation execution.
      • completed

        public void completed​(E result)
        The operation was completed.
        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.
        Parameters:
        result - the current result.