public final class SubscriptionStatistics
extends java.lang.Object
TableInfo.getSubscriptionStatistics()
value objects to report activity statistics for single subscribed items involved
in a Table (i.e.: Subscription).Constructor and Description |
---|
SubscriptionStatistics(long totRealTime,
long totLost,
long totFiltered)
Used by Lightstreamer to create a SubscriptionStatistics instance,
collecting various activity statistics for a single Item.
|
Modifier and Type | Method and Description |
---|---|
long |
getTotFiltered()
Returns the number of updates that were not sent to the client, but filtered out
according to the filtering rules, throughout the life of a subscription.
|
long |
getTotLost()
Returns the number of updates that had to be sent the client,
but weren't, throughout the life of a subscription.
|
long |
getTotRealTime()
Returns the number of real-time updates sent to the client
throughout the life of a subscription.
|
public SubscriptionStatistics(long totRealTime, long totLost, long totFiltered)
totRealTime
- the number of real-time updates sent to the client.
Events that are part of the initial snapshot are not included.totLost
- the number of updates that had to be sent the client,
but weren't, because of buffer restrictions.totFiltered
- the number of updates that were not sent to the
client, but filtered out according to the filtering rules.public long getTotRealTime()
public long getTotLost()
public long getTotFiltered()
getTotLost()
are not
considered as filtered.
Events discarded because of the application of a "selector" are
also included in this count, regardless of the subscription mode.