Class UniformTimeSimpleSnapshot

java.lang.Object
org.glassfish.jersey.server.internal.monitoring.core.AbstractTimeSnapshot
org.glassfish.jersey.server.internal.monitoring.UniformTimeSimpleSnapshot
All Implemented Interfaces:
UniformTimeSnapshot

class UniformTimeSimpleSnapshot extends AbstractTimeSnapshot
A statistical snapshot of a UniformTimeSimpleSnapshot.
See Also:
  • Field Details

    • max

      private final long max
    • min

      private final long min
    • mean

      private final double mean
    • count

      private final long count
  • Constructor Details

    • UniformTimeSimpleSnapshot

      public UniformTimeSimpleSnapshot(long max, long min, double mean, long count, long timeInterval, TimeUnit timeIntervalUnit)
      Constructs the snapshot which simply returns the provided data as arguments.
      Parameters:
      max - The maximum.
      min - The minimum.
      mean - The mean.
      count - The total count.
      timeInterval - The time interval of this snapshot.
      timeIntervalUnit - The time interval unit.
  • Method Details

    • size

      public long size()
      Description copied from interface: UniformTimeSnapshot
      Returns the number of values in the snapshot.
      Returns:
      the number of values
    • getMax

      public long getMax()
      Returns:
      The maximum value in this snapshot
    • getMin

      public long getMin()
      Returns:
      The minimum value in this snapshot
    • getMean

      public double getMean()
      Returns:
      The mean of the values in this snapshot