Interface TimerSet
-
- All Known Implementing Classes:
AbstractSharedTimerSet
,JmxGcTimerSet
,JmxHotspotTimerSet
public interface TimerSet
TimerSet
is an abstraction for creating one or moreTimer
instances that are interdependent in some way.For example,
AbstractSharedTimerSet
is aTimerSet
that maintains a single global counter and attributes its change to all of theTimer
instances in the set that are currently running.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Timer
createTimer()
int
getActiveCount()
Returns the number ofTimer
instances in this set that are currently active (i.e.
-
-
-
Method Detail
-
createTimer
Timer createTimer()
-
getActiveCount
int getActiveCount()
Returns the number ofTimer
instances in this set that are currently active (i.e.Timer.start()
has been called since the lastTimer.stop()
call.
-
-