Package org.glassfish.pfl.tf.timer.impl
Class TimerGroupImpl
java.lang.Object
org.glassfish.pfl.tf.timer.spi.NamedBase
org.glassfish.pfl.tf.timer.impl.NamedBaseImpl
org.glassfish.pfl.tf.timer.impl.ControllableBase
org.glassfish.pfl.tf.timer.impl.TimerGroupImpl
- All Implemented Interfaces:
Controllable
,Named
,TimerGroup
- Direct Known Subclasses:
TimerFactoryImpl
A TimerGroup is a collection of Controllables, which includes
Timers and TimerGroups.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Set
<ControllableBase> private long
private Set
<ControllableBase> private Set
<ControllableBase> private Set
<ControllableBase> private long
-
Constructor Summary
ConstructorsConstructorDescriptionTimerGroupImpl
(int id, TimerFactoryImpl factory, String name, String description) -
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(Controllable con) contents()
Return an unmodifiable set of the contents of this Controllable.boolean
remove
(Controllable con) (package private) Set
<ControllableBase> Methods inherited from class org.glassfish.pfl.tf.timer.impl.ControllableBase
description, description, disable, enable, id, isEnabled, transitiveClosure
Methods inherited from class org.glassfish.pfl.tf.timer.impl.NamedBaseImpl
factory
Methods inherited from class org.glassfish.pfl.tf.timer.spi.NamedBase
equals, hashCode, name, setFactory, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.glassfish.pfl.tf.timer.spi.Controllable
description, disable, enable, id, isEnabled
-
Field Details
-
contents
-
roContents
-
contentVersion
private long contentVersion -
tcContents
-
roTcContents
-
tcContentVersion
private long tcContentVersion
-
-
Constructor Details
-
TimerGroupImpl
TimerGroupImpl(int id, TimerFactoryImpl factory, String name, String description)
-
-
Method Details
-
contents
Description copied from interface:Controllable
Return an unmodifiable set of the contents of this Controllable. May always be empty for some subclasses of Controllable.- Specified by:
contents
in interfaceControllable
- Overrides:
contents
in classControllableBase
-
add
- Specified by:
add
in interfaceTimerGroup
-
remove
- Specified by:
remove
in interfaceTimerGroup
-
tcContents
Set<ControllableBase> tcContents()
-