Class CounterSnapshot

java.lang.Object
com.pervasive.datarush.monitoring.CounterSnapshot
All Implemented Interfaces:
CounterSupplier, StatisticSupplier, Serializable

public final class CounterSnapshot extends Object implements CounterSupplier, Serializable
A snapshot that reflects a point-in-time of a CounterSupplier.
See Also:
  • Field Details

  • Constructor Details

    • CounterSnapshot

      public CounterSnapshot(CounterSupplier source)
      Create a snapshot of the given counter.
      Parameters:
      source - the counter
    • CounterSnapshot

      public CounterSnapshot(StatisticState state, long count)
      Create a snapshot with the specified values
      Parameters:
      state - the state of the counter
      count - the count of the counter
  • Method Details