Class NonWorkingCompletionHandler

  • All Implemented Interfaces:
    CompletionHandler

    public final class NonWorkingCompletionHandler
    extends java.lang.Object
    implements CompletionHandler
    Author:
    Simon Thoresen Hult
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void completed()
      Invoked when an operation has completed.
      void failed​(java.lang.Throwable t)
      Invoked when an operation fails.
      • Methods inherited from class java.lang.Object

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

      • NonWorkingCompletionHandler

        public NonWorkingCompletionHandler()
    • Method Detail

      • failed

        public void failed​(java.lang.Throwable t)
        Description copied from interface: CompletionHandler
        Invoked when an operation fails. Notice that you MUST call either this or CompletionHandler.completed() to release the internal Container reference. Failure to do so will prevent the Container from ever shutting down.
        Specified by:
        failed in interface CompletionHandler
        Parameters:
        t - The exception to indicate why the I/O operation failed.