Interface TimerSet
-
- All Known Implementing Classes:
AbstractSharedTimerSet,JmxGcTimerSet,JmxHotspotTimerSet
public interface TimerSetTimerSetis an abstraction for creating one or moreTimerinstances that are interdependent in some way.For example,
AbstractSharedTimerSetis aTimerSetthat maintains a single global counter and attributes its change to all of theTimerinstances in the set that are currently running.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimercreateTimer()intgetActiveCount()Returns the number ofTimerinstances in this set that are currently active (i.e.
-
-
-
Method Detail
-
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.
-
-