setSlowingEnabled method
- bool newVal
Setter method that turns on or off the slowing algorithm.
This heuristic algorithm tries to detect when the client
CPU is not able to keep the pace of the events sent by the Server on a streaming connection. In that case, an automatic
transition to polling is performed.
In polling, the client handles all the data before issuing the next poll, hence a slow client would just delay the polls,
while the Server accumulates and merges the events and ensures that no obsolete data is sent.
Only in very slow clients, the next polling request may be so much delayed that the Server disposes the session first,
because of its protection timeouts. In this case, a request for a fresh session will be reissued by the client and this
may happen in cycle.
Default false.
Lifecycle This setting should be performed before calling the LightstreamerClient.connect method. However, the value can be changed at any time: the supplied value will be used for the next streaming connection (either a bind or a brand new session).
Notification A change to this setting will be notified through a call to ClientListener.onPropertyChange with argument "slowingEnabled" on any ClientListener listening to the related LightstreamerClient.
newVal
true or false, to enable or disable the heuristic algorithm that lowers the item update frequency.
Implementation
void setSlowingEnabled(bool newVal) {
_slowingEnabled = newVal;
}