MpnSubscriptionListener class

Interface to be implemented to receive MpnSubscription events including subscription/unsubscription, triggering and status change.

Events for these listeners are dispatched by a different thread than the one that generates them. This means that, upon reception of an event, it is possible that the internal state of the client has changed. On the other hand, all the notifications for a single LightstreamerClient, including notifications to ClientListener, SubscriptionListener, ClientMessageListener, MpnDeviceListener and MpnSubscriptionListener will be dispatched by the same thread.

Constructors

MpnSubscriptionListener()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onListenEnd() → void
Event handler called when the MpnSubscriptionListener instance is removed from an MpnSubscription through MpnSubscription.removeListener.
onListenStart() → void
Event handler called when the MpnSubscriptionListener instance is added to an MpnSubscription through MpnSubscription.addListener.
onModificationError(int errorCode, String errorMessage, String propertyName) → void
Event handler called when the value of a property of MpnSubscription cannot be changed.
onPropertyChanged(String propertyName) → void
Event handler called each time the value of a property of MpnSubscription is changed.
onStatusChanged(String status, int timestamp) → void
Event handler called when the server notifies that an MpnSubscription changed its status.
onSubscription() → void
Event handler called when an MpnSubscription has been successfully subscribed to on the server's MPN Module.
onSubscriptionError(int errorCode, String errorMessage) → void
Event handler called when the server notifies an error while subscribing to an MpnSubscription.
onTriggered() → void
Event handler called when the server notifies that an MpnSubscription did trigger.
onUnsubscription() → void
Event handler called when an MpnSubscription has been successfully unsubscribed from on the server's MPN Module.
onUnsubscriptionError(int errorCode, String errorMessage) → void
Event handler called when the server notifies an error while unsubscribing from an MpnSubscription.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited