Class SessionStatsAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<session_stats_alert>
com.frostwire.jlibtorrent.alerts.SessionStatsAlert
All Implemented Interfaces:
Alert<session_stats_alert>

public final class SessionStatsAlert extends AbstractAlert<session_stats_alert>
The SessionStatsAlert is posted when the user requests session statistics by calling SessionHandle.postSessionStats() on the session object. Its category is alert.status_notification, but it is not subject to filtering, since it's only manually posted anyway.
  • Method Details

    • value

      public long value(int index)
      The internal values are a mix of counters and gauges, which meanings can be queries via the LibTorrent.sessionStatsMetrics() function.

      The mapping from a specific metric to an index into this array is constant for a specific version of libtorrent, but may differ for other versions. The intended usage is to request the mapping, i.e. call LibTorrent.sessionStatsMetrics(), once on startup, and then use that mapping to interpret these values throughout the process's runtime.

      Returns:
      the value