Class SessionCounterInterval

    • Constructor Detail

      • SessionCounterInterval

        public SessionCounterInterval()
    • Method Detail

      • getPeakConcurrency

        public long getPeakConcurrency()
        Gets the maximum concurrency level observed during this interval.
        Returns:
        The peakConcurrency value
      • copy

        public SessionCounterInterval copy​(SessionCounterInterval inFrom)
        Copies the state of the Interval argument into this SessionCounterInterval.
        Parameters:
        inFrom - - SessionCounterInterval to be copied
        Returns:
        the SessionCounterInterval into which values were copied
      • getConcurrency

        public long getConcurrency()
        Gets the number of concurrent events underway at the present time.
        Returns:
        The concurrency value
      • add

        public void add​(int inCount)
        Description copied from interface: Interval
        Registers the occurrence of n new events.

        Intended for internal use only.

        Specified by:
        add in interface Interval
        Overrides:
        add in class EventCounterInterval
        Parameters:
        inCount - number of events to be counted
      • remove

        public void remove​(int inCount)
        Remove a number of sessions
        Parameters:
        inCount - - number of sessions to be removed