Class TableInfo

java.lang.Object
com.lightstreamer.interfaces.metadata.TableInfo

public class TableInfo extends Object
Used by Lightstreamer to provide value objects to the calls to methods MetadataProvider.notifyNewTables(java.lang.String, java.lang.String, com.lightstreamer.interfaces.metadata.TableInfo[]), MetadataProvider.notifyTablesClose(java.lang.String, com.lightstreamer.interfaces.metadata.TableInfo[]), and MetadataProvider.notifyMpnSubscriptionActivation(java.lang.String, java.lang.String, com.lightstreamer.interfaces.metadata.TableInfo, com.lightstreamer.interfaces.metadata.MpnSubscriptionInfo). The attributes of every Table (i.e.: Subscription) to be added or removed to a Session have to be written to a TableInfo instance. The object also provides useful queries and operations that can be performed on its specific Table (i.e.: Subscription).
  • Constructor Summary

    Constructors
    Constructor
    Description
    TableInfo(int winIndex, Mode mode, String group, String dataAdapter, String schema, int min, int max, String selector, String[] itemNames, SubscriptionStatistics[] itemSubscrStats)
    Used by Lightstreamer to create a TableInfo instance, collecting the various attributes of a Table (i.e.: Subscription).
  • Method Summary

    Modifier and Type
    Method
    Description
    Enforces the unsubscription of this Table (i.e.: Subscription).
    Returns the name of the Data Adapter to which the Table (i.e.: Subscription) refers.
    Returns the name of the Item Group (or specification of the Item List) to which the subscribed Items belong.
    int
    Returns the index of the last Item in the Group to be considered in the Table (i.e.: Subscription).
    int
    Returns the index of the first Item in the Group to be considered in the Table (i.e.: Subscription).
    Returns the publishing Mode for the Items in the Table (i.e.: Subscription) (it must be the same across all the Table).
    Returns the name of the Field Schema (or specification of the Field List) used for the subscribed Items.
    Returns the name of the optional Selector associated to the Table (i.e.: Subscription).
    Returns the array of the Item names involved in this Table (i.e.: Subscription).
    Returns an array that contains the statistics related with the activity of all items involved in this Table (i.e.: Subscription).
    int
    Returns a unique identifier of the client subscription request within the session.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TableInfo

      public TableInfo(int winIndex, @Nonnull Mode mode, @Nonnull String group, @Nonnull String dataAdapter, @Nonnull String schema, int min, int max, @Nullable String selector, @Nonnull String[] itemNames, @Nullable SubscriptionStatistics[] itemSubscrStats)
      Used by Lightstreamer to create a TableInfo instance, collecting the various attributes of a Table (i.e.: Subscription).
      Parameters:
      winIndex - Unique identifier of the client subscription request within the session.
      mode - Publishing Mode for the Items in the Table (i.e.: Subscription) (it must be the same across all the Table).
      group - The name of the Item Group (or specification of the Item List) to which the subscribed Items belong.
      dataAdapter - The name of the Data Adapter to which the Table (i.e.: Subscription) refers.
      schema - The name of the Field Schema (or specification of the Field List) used for the subscribed Items.
      selector - The name of the optional Selector associated to the table (i.e.: Subscription).
      min - The 1-based index of the first Item in the Group to be considered in the Table (i.e.: Subscription).
      max - The 1-based index of the last Item in the Group to be considered in the Table (i.e.: Subscription).
      itemNames - The array of Item names involved in this Table (i.e.: Subscription).
      itemSubscrStats - An optional array that contains the statistics related with the activity of this subscription.
  • Method Details