Class CompletionHandler<E>

java.lang.Object
org.glassfish.tyrus.spi.CompletionHandler<E>
Type Parameters:
E - result type.

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

    • CompletionHandler

      public CompletionHandler()
  • Method Details

    • cancelled

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

      public void failed(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.