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, toStringpublic final java.lang.Void apply(UQI uqi, Tin input)
Functionpublic final void onCancel(UQI uqi)
Functionprotected abstract void onInput(Tin input)
input - the resultprotected void onFail(PSException exception)
exception - the exception happened during getting the result.