Class CompletionHandler<E>


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void completed​(E result)
      The operation has completed.
      void failed​(java.lang.Throwable throwable)
      The operation has failed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompletionHandler

        CompletionHandler()
    • Method Detail

      • failed

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

        public void completed​(E result)
        The operation has completed.
        Parameters:
        result - the operation result.