onRealMaxFrequency method
- String? frequency
Event handler that is called by Lightstreamer to notify the client with the real maximum update frequency of the Subscription.
It is called immediately after the Subscription is established and in response to a requested change
(see Subscription.setRequestedMaxFrequency).
Since the frequency limit is applied on an item basis and a Subscription can involve multiple items,
this is actually the maximum frequency among all items. For Subscriptions with two-level behavior
(see Subscription.setCommandSecondLevelFields and Subscription.setCommandSecondLevelFieldSchema)
, the reported frequency limit applies to both first-level and second-level items.
The value may differ from the requested one because of restrictions operated on the server side,
but also because of number rounding.
Note that a maximum update frequency (that is, a non-unlimited one) may be applied by the Server
even when the subscription mode is RAW or the Subscription was done with unfiltered dispatching.
frequency
A decimal number, representing the maximum frequency applied by the Server (expressed in updates per second), or the string "unlimited". A null value is possible in rare cases, when the frequency can no longer be determined.
Implementation
void onRealMaxFrequency(String? frequency) {}