Package org.glassfish.pfl.tf.timer.impl
Class TimerImpl
- 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.TimerImpl
-
- All Implemented Interfaces:
Controllable
,Named
,Timer
public class TimerImpl extends ControllableBase implements Timer
This interface exists because a Controllable is not loggable: only a Timer is loggable (we do not want TimerGroup to be loggable).
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicBoolean
isActivated
-
Constructor Summary
Constructors Constructor Description TimerImpl(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
isActivated()
Return true if this Timer is ready to create TimerEvents.(package private) void
setActivated(boolean flag)
-
Methods inherited from class org.glassfish.pfl.tf.timer.impl.ControllableBase
contents, 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
contents, description, disable, enable, id, isEnabled
-
-
-
-
Constructor Detail
-
TimerImpl
TimerImpl(int id, TimerFactoryImpl factory, java.lang.String name, java.lang.String description)
-
-
Method Detail
-
isActivated
public final boolean isActivated()
Description copied from interface:Timer
Return true if this Timer is ready to create TimerEvents. This is the case either if this Timer is enabled, or is reachable through contents() from an enabled TimerGroup.- Specified by:
isActivated
in interfaceTimer
-
setActivated
void setActivated(boolean flag)
-
-