public interface Callback<IN,OUT>
|Modifier and Type||Interface and Description|
Implement this (rare) if your callback produces "more" than a single output This will be used by a single followup callback as its more...
Implement this if your callback produces multiple single outputs to be used by multiple followup callbacks as their IN argument.
ex- null, or an Exception thrown from an earlier callback. You should test for this!
in- input data, probably coming from a previous callback
more- additional input data (rarely used)
void setNextCallback(Callback nextCallback)
nextCallback- null means end of the line