public class CallableUnitCallbackObserver extends CallbackObserver implements CallableUnitCallback
CallableUnitCallbackObserver
wraps CallableUnitCallback
to observe events.Constructor and Description |
---|
CallableUnitCallbackObserver(ObserverContext observerContext,
CallableUnitCallback callback) |
Modifier and Type | Method and Description |
---|---|
void |
notifyFailure(BMap<String,BValue> 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 CallableUnitCallbackObserver(ObserverContext observerContext, CallableUnitCallback callback)
public void notifySuccess()
CallableUnitCallback
notifySuccess
in interface CallableUnitCallback
notifySuccess
in class CallbackObserver
public void notifyFailure(BMap<String,BValue> error)
CallableUnitCallback
notifyFailure
in interface CallableUnitCallback
notifyFailure
in class CallbackObserver
error
- the error to be reported when the operation failedCopyright © 2018 WSO2. All rights reserved.