com.tibco.bpm.web.client.model.pagebus.callbacks
Class OnSubscribeCompleteCallback
java.lang.Object
com.tibco.bpm.web.client.model.pagebus.callbacks.OnSubscribeCompleteCallback
public abstract class OnSubscribeCompleteCallback
- extends java.lang.Object
This callback is invoke when an asynchronous API call completes.
©2011 Cloud Software Group, Inc.
- Since:
- 1.2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OnSubscribeCompleteCallback
public OnSubscribeCompleteCallback()
onComplete
protected abstract void onComplete(Subscription subscription,
boolean success,
java.lang.String error)
- Callback handler.
- Parameters:
subscription
- A Subscription with a handle value matching the subscription the completed operation was invoked on.success
- If operation succeeded then true, else false.error
- If success != true, then contains a string error code, else is undefined.
getNativeCallback
public static final com.google.gwt.core.client.JavaScriptObject getNativeCallback(OnSubscribeCompleteCallback instance)
- Returns the native function that is passed to the PageBus for the callback.
The instance is explicitly assigned here to eliminate the need to specify
the scope instance parameter. In the PageBus subscribe methods, the
scope instance parameter is applied to both the OnDataCallback and the
OnSubscribeCompleteCallback which does not work as these are two separate class
instances. For consistency, the instance is explicitly set for both
class instances using this static methods.
- Parameters:
instance
- The instance the callback is defined on.
Copyright © 2015 Cloud Software Group, Inc. All Rights Reserved.