onEndOfSnapshot method

void onEndOfSnapshot(
  1. String itemName,
  2. int itemPos
)

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.

Implementation

void onEndOfSnapshot(String itemName, int itemPos) {}