Package org.ores.async
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 TypeMethodDescriptionvoidvoidvoidFire the continuation with either an error or a value (never both).default voidShorthand fordone(e)— fail the Waterfall with the given error.default voidShorthand fordone(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
-
done
Description copied from interface:Asyncc.IAsyncCallbackFire the continuation with either an error or a value (never both).- Specified by:
donein interfaceAsyncc.IAsyncCallback<T,E> - Parameters:
e- the error, ornullfor successm- the value, ornullwheneis non-null
-
done
-
success
Shorthand fordone(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
Shorthand fordone(e)— fail the Waterfall with the given error. Overrides the inheritedAsyncc.IAsyncCallback.fail(Object)soc.fail(err)routes through the 1-arg Waterfall-specificdone(E)path instead ofdone(E, value)with anullvalue (which has different downstream semantics).- Specified by:
failin interfaceAsyncc.IAsyncCallback<T,E> - Since:
- 0.2.5
-