public abstract class Callback<Tin> extends Function<Tin,java.lang.Void>
isCancelled
Constructor and Description |
---|
Callback() |
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
apply(UQI uqi,
Tin input)
Apply this function
|
void |
onCancel(UQI uqi)
Callback when this function is cancelled
|
protected void |
onFail(PSException exception)
This method will be invoked if failed to get the result.
|
protected abstract void |
onInput(Tin input)
This method will be invoked on received an input.
|
addParameters, addRequiredPermissions, cancel, compound, getHead, getParameters, getRequiredPermissions, getTail, raiseException, toString
public final java.lang.Void apply(UQI uqi, Tin input)
Function
public final void onCancel(UQI uqi)
Function
protected abstract void onInput(Tin input)
input
- the resultprotected void onFail(PSException exception)
exception
- the exception happened during getting the result.