ClientListener class
Interface to be implemented to listen to LightstreamerClient events comprehending notifications of connection activity and errors.
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 ClientListeners, SubscriptionListeners and ClientMessageListeners will be dispatched by the same thread.
Constructors
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 that receives a notification when the ClientListener instance is removed from a LightstreamerClient through LightstreamerClient.removeListener.
-
onListenStart(
) → void - Event handler that receives a notification when the ClientListener instance is added to a LightstreamerClient through LightstreamerClient.addListener.
-
onPropertyChange(
String property) → void - Event handler that receives a notification each time the value of a property of LightstreamerClient.connectionDetails or LightstreamerClient.connectionOptions is changed.
-
onServerError(
int errorCode, String errorMessage) → void - Event handler that is called when the Server notifies a refusal on the client attempt to open a new connection or the interruption of a streaming connection.
-
onStatusChange(
String status) → void - Event handler that receives a notification each time the LightstreamerClient status has changed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited