onEndOfSnapshot method
Event handler that is called by Lightstreamer to notify that all snapshot events for an item in the Subscription have been received, so that real time events are now going to be received.
The received snapshot could be empty. Such notifications are sent only if the items are delivered in DISTINCT or COMMAND
subscription mode and snapshot information was indeed requested for the items. By implementing this
method it is possible to perform actions which require that all the initial values have been received.
Note that, if the involved Subscription has a two-level behavior enabled
(see Subscription.setCommandSecondLevelFields and Subscription.setCommandSecondLevelFieldSchema)
, the notification refers to the first-level item (which is in COMMAND mode).
Snapshot-related updates for the second-level items
(which are in MERGE mode) can be received both before and after this notification.
-
itemName
name of the involved item. If the Subscription was initialized using an "Item Group" then a null value is supplied. -
itemPos
1-based position of the item within the "Item List" or "Item Group".
Implementation
void onEndOfSnapshot(String itemName, int itemPos) {}