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 longprivate 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 TypeMethodDescriptionbooleanadd(Controllable con) contents()Return an unmodifiable set of the contents of this Controllable.booleanremove(Controllable con) (package private) Set<ControllableBase> Methods inherited from class org.glassfish.pfl.tf.timer.impl.ControllableBase
description, description, disable, enable, id, isEnabled, transitiveClosureMethods inherited from class org.glassfish.pfl.tf.timer.impl.NamedBaseImpl
factoryMethods inherited from class org.glassfish.pfl.tf.timer.spi.NamedBase
equals, hashCode, name, setFactory, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:ControllableReturn an unmodifiable set of the contents of this Controllable. May always be empty for some subclasses of Controllable.- Specified by:
contentsin interfaceControllable- Overrides:
contentsin classControllableBase
-
add
- Specified by:
addin interfaceTimerGroup
-
remove
- Specified by:
removein interfaceTimerGroup
-
tcContents
Set<ControllableBase> tcContents()
-