ClientListener class abstract
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.
- Annotations
-
- @JSExport()
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 dummy) → void - Event handler that receives a notification when the ClientListener instance is removed from a LightstreamerClient through LightstreamerClient.removeListener.
-
onListenStart(
void dummy) → 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.
-
onServerKeepalive(
) → void - Notifies that the Server has sent a keepalive message because a streaming connection is in place and no update had been sent for the configured time (see ConnectionOptions.setKeepaliveInterval).
-
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