Class TableSubscriptionRequest

java.lang.Object
com.illumon.iris.web.shared.data.TableSubscriptionRequest
All Implemented Interfaces:
Serializable

public class TableSubscriptionRequest extends Object implements Serializable
A class to encapsulate updates to a given table's subscription. Because the server is now managing the creation of a "tail table" to only subscribe to updates after all filters have run, we are giving the server a bit more rights w.r.t. subscription state management. The client will now send an array of ViewportSubscription, each containing a subscriptionId (JsTable id) and a Viewport object. The server will be responsible for merging ranges and columns to create flattened, preemptive updates tables with the desired viewports. For now, we'll likely preserve "bunch them all together" semantics, but we should do performance testing to identify if we'll get better performance from having multiple tables of smaller viewport scope (more messages on the wire, but less work to do before sending messages). The columns must be non-null (and almost always non-empty), but rows may be null to indicate a non-viewport subscription.
See Also:
  • Constructor Details

    • TableSubscriptionRequest

      public TableSubscriptionRequest()
    • TableSubscriptionRequest

      public TableSubscriptionRequest(int subscriptionId, @Nullable RangeSet rows, BitSet columns)
  • Method Details

    • getSubscriptionId

      public int getSubscriptionId()
    • getRows

      public RangeSet getRows()
    • getColumns

      public BitSet getColumns()
    • toString

      public String toString()
      Overrides:
      toString in class Object