setIdleTimeout method
- int newVal
Setter method that sets the maximum time the Server is allowed to wait for any data to be sent in response to a polling request, if none has accumulated at request time.
Setting this time to a nonzero value and the polling interval
to zero leads to an "asynchronous polling" behavior, which, on low data rates, is very similar to the streaming case.
Setting this time to zero and the polling interval to a nonzero value, on the other hand, leads to a classical
"synchronous polling".
Note that the Server may, in some cases, delay the answer for more than the supplied time, to protect itself against
a high polling rate or because of bandwidth restrictions. Also, the Server may impose an upper limit on the wait time,
in order to be able to check for client-side connection drops.
Default 19000 (19 seconds).
Lifecycle The idle timeout should be set before calling the LightstreamerClient.connect method. However, the value can be changed at any time: the supplied value will be used for the next polling request.
Notification A change to this setting will be notified through a call to ClientListener.onPropertyChange with argument "idleTimeout" on any ClientListener listening to the related LightstreamerClient.
newVal
The time (in milliseconds) the Server is allowed to wait for data to send upon polling requests.
Throws IllegalArgumentException if a negative value is configured
Implementation
external void setIdleTimeout(int newVal);