Class SlidingWindowTimeReservoir

java.lang.Object
org.glassfish.jersey.server.internal.monitoring.core.AbstractSlidingWindowTimeReservoir<Long>
org.glassfish.jersey.server.internal.monitoring.SlidingWindowTimeReservoir
All Implemented Interfaces:
TimeReservoir<Long>

class SlidingWindowTimeReservoir extends AbstractSlidingWindowTimeReservoir<Long>
Sliding window time reservoir implementation that stores data of type Long.
  • Constructor Details

    • SlidingWindowTimeReservoir

      public SlidingWindowTimeReservoir(long window, TimeUnit windowUnit, long startTime, TimeUnit startTimeUnit, SlidingWindowTrimmer<Long> trimmer)
      Creates a new sliding window time reservoir with the start time, specified time window and a custom trimmer.
      Parameters:
      window - The window of startTime.
      windowUnit - The unit of window.
      startTime - The start time from which this reservoir calculates measurements.
      startTimeUnit - The start time unit.
      trimmer - The trimmer to use for trimming, if null, default trimmer is used.
    • SlidingWindowTimeReservoir

      public SlidingWindowTimeReservoir(long window, TimeUnit windowUnit, long startTime, TimeUnit startTimeUnit)
      Creates a new sliding window time reservoir with the start time, specified time window and a default trimmer.
      Parameters:
      window - The window of startTime.
      windowUnit - The unit of window.
      startTime - The start time from which this reservoir calculates measurements.
      startTimeUnit - The start time unit.
  • Method Details