public class BLangCallableUnitCallback extends Object implements CallableUnitCallback
| Constructor and Description |
|---|
BLangCallableUnitCallback(Context nativeCallCtx,
WorkerExecutionContext parentCtx,
int[] retRegs,
BType[] retTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyFailure(BStruct error)
This should be called to notify the listener that your operation
failed with a specific error.
|
void |
notifySuccess()
This should be called when you want to notify that your operation
is done successfully.
|
public BLangCallableUnitCallback(Context nativeCallCtx, WorkerExecutionContext parentCtx, int[] retRegs, BType[] retTypes)
public void notifySuccess()
CallableUnitCallbacknotifySuccess in interface CallableUnitCallbackpublic void notifyFailure(BStruct error)
CallableUnitCallbacknotifyFailure in interface CallableUnitCallbackerror - the error to be reported when the operation failedCopyright © 2018 WSO2. All rights reserved.