Interface TimerSet

All Known Implementing Classes:
AbstractSharedTimerSet, JmxGcTimerSet, JmxHotspotTimerSet

public interface TimerSet
TimerSet is an abstraction for creating one or more Timer instances that are interdependent in some way.

For example, AbstractSharedTimerSet is a TimerSet that maintains a single global counter and attributes its change to all of the Timer instances in the set that are currently running.

  • Method Summary

    Modifier and Type
    Method
    Description
    Create a Timer that becomes a part of this TimerSet.
    int
    Returns the number of Timer instances in this set that are currently active (i.e.
  • Method Details

    • createTimer

      Timer createTimer()
      Create a Timer that becomes a part of this TimerSet.
    • getActiveCount

      int getActiveCount()
      Returns the number of Timer instances in this set that are currently active (i.e. Timer.start() has been called since the last Timer.stop() call.