setReconnectTimeout method

void setReconnectTimeout(
  1. int newVal
)

Setter method that sets the time the client, after entering "STALLED" status, is allowed to keep waiting for a keepalive packet or any data on a stream connection, before disconnecting and trying to reconnect to the Server.

The new connection may be either the opening of a new session or an attempt to recovery the current session, depending on the kind of interruption.

Default 3000 (3 seconds).

Lifecycle This value can be set and changed at any time.

Notification A change to this setting will be notified through a call to ClientListener.onPropertyChange with argument "reconnectTimeout" on any ClientListener listening to the related LightstreamerClient.

  • newVal The idle time (in milliseconds) allowed in "STALLED" status before trying to reconnect to the Server.

Throws IllegalArgumentException if a negative or zero value is configured

Implementation

external void setReconnectTimeout(int newVal);