![]() |
Lightstreamer iOS Client 1.1.1
Native iOS/Mac OS X Client library for Lightstreamer Server version 4.x and up
|
The LSTableDelegate protocol receives notification of data updates and subscription termination for a table. More...
#import <LSTableDelegate.h>
Public Member Functions | |
(void) | - table:itemPosition:itemName:didUpdateWithInfo: |
Notification of an update of the values for an item in the table. | |
(void) | - table:didEndSnaphostForItemPosition:itemName: |
Notification that no more snapshot events are coming for an item. | |
(void) | - table:itemPosition:itemName:didLoseRawUpdates: |
Notification of one or more updates that were suppressed in the Server because of internal memory limitations. | |
(void) | - table:didUnsubscribeItemPosition:itemName: |
Notification of the unsubscription of an item in the table. | |
(void) | - tableDidUnsubscribeAllItems: |
Notification of the unsubscription of all the items in the table. |
The LSTableDelegate protocol receives notification of data updates and subscription termination for a table.
Upon update of each item, the current and previous state of all fields is provided.
If the subscription configuration enables the "COMMAND logic", then the special "command" and "key" fields are determined and the updates are meant as ADD, UPDATE and DELETE commands on the rows of an underlying table, identified by a key value. In this case, the old field values related with an update are referred to the same key.
Both names and positional information are available to identify specific items and fields, unless an LSTableInfo was used to describe the table: in that case, only positional information is available.
The delegate is called directly from the session thread. The method implementations should be fast and nonblocking. Any slow operations should be enqueued and performed asynchronously.
- (void) table: | (LSSubscribedTableKey *) | tableKey | |
didEndSnaphostForItemPosition: | (int) | itemPosition | |
itemName: | (NSString *) | itemName | |
[optional] |
Notification that no more snapshot events are coming for an item.
This notification is always received once, when the item is subscribed in DISTINCT or COMMAND mode and the snapshot is requested.
tableKey | Key of the related table, as returned by the subscription method. |
itemPosition | 1-based index of the item in the involved table. |
itemName | Name of the changed item, or null if an LSTableInfo was used to describe the table. |
- (void) table: | (LSSubscribedTableKey *) | tableKey | |
didUnsubscribeItemPosition: | (int) | itemPosition | |
itemName: | (NSString *) | itemName | |
[optional] |
Notification of the unsubscription of an item in the table.
It is sent if an LSTableInfo was used to describe the table, and just before tableDidUnsubscribeAllItems:. Any data notification received after this call can be ignored.
If an LSTableInfo was used to describe the table, then the notification will not be sent.
tableKey | Key of the related table, as returned by the subscription method. |
itemPosition | 1-based index of the item in the involved table. |
itemName | Name of the changed item, or null if an LSTableInfo was used to describe the table. |
- (void) table: | (LSSubscribedTableKey *) | tableKey | |
itemPosition: | (int) | itemPosition | |
itemName: | (NSString *) | itemName | |
didLoseRawUpdates: | (int) | numberOfUpdates | |
[optional] |
Notification of one or more updates that were suppressed in the Server because of internal memory limitations.
The notification can be sent if the subscription mode is RAW or COMMAND. It can also be sent if the subscription mode is MERGE or DISTINCT and unfiltered dispatching has been requested. In all these cases, an update loss may be unacceptable for the client (in filtered COMMAND mode, this applies to ADD and DELETE events only).
tableKey | Key of the related table, as returned by the subscription method. |
itemPosition | 1-based index of the item in the involved table. |
itemName | Name of the changed item, or null if an LSTableInfo was used to describe the table. |
numberOfUpdates | Number of consecutive lost updates for the item. |
- (void) table: | (LSSubscribedTableKey *) | tableKey | |
itemPosition: | (int) | itemPosition | |
itemName: | (NSString *) | itemName | |
didUpdateWithInfo: | (LSUpdateInfo *) | updateInfo | |
Notification of an update of the values for an item in the table.
Field value information is supplied through a suitable value object: as such, the value object can be stored and inquired in a different thread, if needed.
tableKey | Key of the related table, as returned by the subscription method. |
itemPosition | 1-based index of the item in the involved table. |
itemName | Name of the changed item, or null if an LSTableInfo was used to describe the table. |
updateInfo | Value object which contains field value information. |
- (void) tableDidUnsubscribeAllItems: | (LSSubscribedTableKey *) | tableKey | [optional] |
Notification of the unsubscription of all the items in the table.
The unsubscription may be subsequent to an unsubscribeTable call or to the closure of the connection. There is no guarantee that this call will not be followed by some further update notifications. Such extra calls should be ignored.
tableKey | Key of the related table, as returned by the subscription method. |