Interface Callback.Completing

All Superinterfaces:
Callback, Invocable
All Known Implementing Classes:
Callback.Nested, CountingCallback, HTTP2Session.Entry
Enclosing interface:
Callback

public static interface Callback.Completing extends Callback

A Callback implementation that calls the completed() method when it either succeeds or fails.

  • Method Details

    • completed

      void completed()
    • succeeded

      default void succeeded()
      Description copied from interface: Callback

      Callback invoked when the operation completes.

      Specified by:
      succeeded in interface Callback
      See Also:
    • failed

      default void failed(Throwable x)
      Description copied from interface: Callback

      Callback invoked when the operation fails.

      Specified by:
      failed in interface Callback
      Parameters:
      x - the reason for the operation failure