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 TypeMethodDescriptionintReturns the number ofTimerinstances in this set that are currently active (i.e.
-
Method Details
-
createTimer
Timer createTimer() -
getActiveCount
int getActiveCount()Returns the number ofTimerinstances in this set that are currently active (i.e.Timer.start()has been called since the lastTimer.stop()call.
-