Attributes | Name and Description |
---|---|
|
caplin.services.messaging.SubscriptionListener()
|
Attributes | Name and Description |
---|---|
|
void
onDataUpdate(String sSubject, Map mData, Map mMetaData)
Called when an update is received for the subscribed record. |
|
void
onError(String sSubject, caplin.services.messaging.SubscriptionError sErrorType)
Called when there is an error with the subscription. |
|
void
onStatusUpdate(String sSubject, caplin.services.messaging.SubscriptionStatus sStatus)
Called when the status of the subscription changes. |
►
caplin.services.messaging.SubscriptionListener()
►
void
onDataUpdate(String sSubject, Map mData, Map mMetaData)
Called when an update is received for the subscribed record.
String | sSubject | The subject of the record that the update is for. |
Map | mData | The updated data. |
Map | mMetaData | Meta data for the update. This includes:
|
►
void
onError(String sSubject, caplin.services.messaging.SubscriptionError sErrorType)
Called when there is an error with the subscription.
String | sSubject | The subject of the record that had an error. |
caplin.services.messaging.SubscriptionError | sErrorType | The type of error. |
►
void
onStatusUpdate(String sSubject, caplin.services.messaging.SubscriptionStatus sStatus)
Called when the status of the subscription changes.
String | sSubject | The subject of the record that changed status. |
caplin.services.messaging.SubscriptionStatus | sStatus | The new status of the subscription. |