Class TableInfo

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletionStage<java.lang.Void> forceUnsubscription()
      Enforces the unsubscription of this Table (i.e.: Subscription).
      java.lang.String getDataAdapter()
      Returns the name of the Data Adapter to which the Table (i.e.: Subscription) refers.
      java.lang.String getId()
      Returns the name of the Item Group (or specification of the Item List) to which the subscribed Items belong.
      int getMax()
      Returns the index of the last Item in the Group to be considered in the Table (i.e.: Subscription).
      int getMin()
      Returns the index of the first Item in the Group to be considered in the Table (i.e.: Subscription).
      Mode getMode()
      Returns the publishing Mode for the Items in the Table (i.e.: Subscription) (it must be the same across all the Table).
      java.lang.String getSchema()
      Returns the name of the Field Schema (or specification of the Field List) used for the subscribed Items.
      java.lang.String getSelector()
      Returns the name of the optional Selector associated to the Table (i.e.: Subscription).
      java.lang.String[] getSubscribedItems()
      Returns the array of the Item names involved in this Table (i.e.: Subscription).
      SubscriptionStatistics[] getSubscriptionStatistics()
      Returns an array that contains the statistics related with the activity of all items involved in this Table (i.e.: Subscription).
      int getWinIndex()
      Returns a unique identifier of the client subscription request within the session.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • TableInfo

        public TableInfo​(int winIndex,
                         @Nonnull
                         Mode mode,
                         @Nonnull
                         java.lang.String group,
                         @Nonnull
                         java.lang.String dataAdapter,
                         @Nonnull
                         java.lang.String schema,
                         int min,
                         int max,
                         @Nullable
                         java.lang.String selector,
                         @Nonnull
                         java.lang.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 Detail

      • getMode

        @Nonnull
        public Mode getMode()
        Returns the publishing Mode for the Items in the Table (i.e.: Subscription) (it must be the same across all the Table).
        Returns:
        a publishing Mode.
      • getId

        @Nonnull
        public java.lang.String getId()
        Returns the name of the Item Group (or specification of the Item List) to which the subscribed Items belong.
        Returns:
        an Item Group name (or Item List specification).
      • getDataAdapter

        @Nonnull
        public java.lang.String getDataAdapter()
        Returns the name of the Data Adapter to which the Table (i.e.: Subscription) refers.
        Returns:
        a Data Adapter name.
      • getSchema

        @Nonnull
        public java.lang.String getSchema()
        Returns the name of the Field Schema (or specification of the Field List) used for the subscribed Items.
        Returns:
        a Field Schema name (or Field List specification).
      • getSelector

        @Nullable
        public java.lang.String getSelector()
        Returns the name of the optional Selector associated to the Table (i.e.: Subscription).
        Returns:
        a Selector name, or null if no Selector was associated to the Table.
      • getMin

        public int getMin()
        Returns the index of the first Item in the Group to be considered in the Table (i.e.: Subscription). Such restriction can be specified in the client request.
        Returns:
        a 1-based index.
      • getMax

        public int getMax()
        Returns the index of the last Item in the Group to be considered in the Table (i.e.: Subscription). Such restriction can be specified in the client request.
        Returns:
        a 1-based index.
      • getSubscribedItems

        @Nonnull
        public java.lang.String[] getSubscribedItems()
        Returns the array of the Item names involved in this Table (i.e.: Subscription). The sequence of names is the same one returned by MetadataProvider.getItems(String, String, String) when decoding of the group name, but restricted, in case a first and/or last Item was specified in the client request (see getMin() and getMax()).
        Returns:
        an Array of Item names.
      • toString

        @Nonnull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object