Class Callback.Completing

  • All Implemented Interfaces:
    Callback, Invocable
    Direct Known Subclasses:
    Callback.Nested
    Enclosing interface:
    Callback

    public static class Callback.Completing
    extends java.lang.Object
    implements Callback

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

    • Method Detail

      • failed

        public void failed​(java.lang.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
      • completed

        public void completed()