Interface NeoWaterfallI.IAsyncCallback<T,E>

All Superinterfaces:
Asyncc.IAsyncCallback<Map.Entry<String,T>,E>
All Known Implementing Classes:
NeoWaterfallI.AsyncCallback
Enclosing class:
NeoWaterfallI

public static interface NeoWaterfallI.IAsyncCallback<T,E> extends Asyncc.IAsyncCallback<Map.Entry<String,T>,E>
  • Field Summary

    Fields inherited from interface org.ores.async.Asyncc.IAsyncCallback

    isDone
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    done(E e)
     
    void
    done(E e, String k, T v)
     
    void
    Fire the continuation with either an error or a value (never both).
    default void
    fail(E e)
    Shorthand for done(e) — fail the Waterfall with the given error.
    default void
    success(String k, T v)
    Shorthand for done(null, k, v) — name the value going into the next Waterfall stage.

    Methods inherited from interface org.ores.async.Asyncc.IAsyncCallback

    setDone, success
  • Method Details

    • done

      void done(E e)
    • done

      void done(E e, Map.Entry<String,T> m)
      Description copied from interface: Asyncc.IAsyncCallback
      Fire the continuation with either an error or a value (never both).
      Specified by:
      done in interface Asyncc.IAsyncCallback<T,E>
      Parameters:
      e - the error, or null for success
      m - the value, or null when e is non-null
    • done

      void done(E e, String k, T v)
    • success

      default void success(String k, T v)
      Shorthand for done(null, k, v) — name the value going into the next Waterfall stage. The conventional way to fire a successful Waterfall continuation in v0.2.5+.
      Since:
      0.2.5
    • fail

      default void fail(E e)
      Shorthand for done(e) — fail the Waterfall with the given error. Overrides the inherited Asyncc.IAsyncCallback.fail(Object) so c.fail(err) routes through the 1-arg Waterfall-specific done(E) path instead of done(E, value) with a null value (which has different downstream semantics).
      Specified by:
      fail in interface Asyncc.IAsyncCallback<T,E>
      Since:
      0.2.5