setStalledTimeout method

void setStalledTimeout(
  1. int newVal
)

Setter method that sets the extra time the client is allowed to wait when an expected keepalive packet has not been received on a stream connection (and no actual data has arrived), before entering the "STALLED" status.

Default 2000 (2 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 "stalledTimeout" on any ClientListener listening to the related LightstreamerClient.

  • newVal The idle time (in milliseconds) allowed before entering the "STALLED" status.

Throws IllegalArgumentException if a negative or zero value is configured

Implementation

void setStalledTimeout(int newVal) {
  _stalledTimeout = newVal;
}