Class Promise.Completable<S>

    • Constructor Detail

      • Completable

        public Completable()
    • Method Detail

      • succeeded

        public void succeeded​(S result)
        Description copied from interface: Promise

        Callback invoked when the operation completes.

        Specified by:
        succeeded in interface Promise<S>
        Parameters:
        result - the context
        See Also:
        Promise.failed(Throwable)
      • failed

        public void failed​(Throwable x)
        Description copied from interface: Promise

        Callback invoked when the operation fails.

        Specified by:
        failed in interface Promise<S>
        Parameters:
        x - the reason for the operation failure