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
public class TimerGroupImpl extends ControllableBase implements TimerGroup
A TimerGroup is a collection of Controllables, which includes Timers and TimerGroups.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<ControllableBase>
contents
private long
contentVersion
private java.util.Set<ControllableBase>
roContents
private java.util.Set<ControllableBase>
roTcContents
private java.util.Set<ControllableBase>
tcContents
private long
tcContentVersion
-
Constructor Summary
Constructors Constructor Description TimerGroupImpl(int id, TimerFactoryImpl factory, java.lang.String name, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Controllable con)
java.util.Set<ControllableBase>
contents()
Return an unmodifiable set of the contents of this Controllable.boolean
remove(Controllable con)
(package private) java.util.Set<ControllableBase>
tcContents()
-
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 Detail
-
contents
private java.util.Set<ControllableBase> contents
-
roContents
private java.util.Set<ControllableBase> roContents
-
contentVersion
private long contentVersion
-
tcContents
private java.util.Set<ControllableBase> tcContents
-
roTcContents
private java.util.Set<ControllableBase> roTcContents
-
tcContentVersion
private long tcContentVersion
-
-
Constructor Detail
-
TimerGroupImpl
TimerGroupImpl(int id, TimerFactoryImpl factory, java.lang.String name, java.lang.String description)
-
-
Method Detail
-
contents
public java.util.Set<ControllableBase> 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
public boolean add(Controllable con)
- Specified by:
add
in interfaceTimerGroup
-
remove
public boolean remove(Controllable con)
- Specified by:
remove
in interfaceTimerGroup
-
tcContents
java.util.Set<ControllableBase> tcContents()
-
-