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