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
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 -
Constructor Summary
ConstructorsConstructorDescriptionTimerImpl(int id, TimerFactoryImpl factory, String name, String description) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturn true if this Timer is ready to create TimerEvents.(package private) voidsetActivated(boolean flag) Methods inherited from class ControllableBase
contents, description, description, disable, enable, id, isEnabled, transitiveClosureMethods inherited from class NamedBaseImpl
factoryMethods inherited from interface Controllable
contents, description, disable, enable, id, isEnabled
-
Field Details
-
isActivated
-
-
Constructor Details
-
TimerImpl
TimerImpl(int id, TimerFactoryImpl factory, String name, String description)
-
-
Method Details
-
isActivated
public final boolean isActivated()Description copied from interface:TimerReturn 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:
isActivatedin interfaceTimer
-
setActivated
void setActivated(boolean flag)
-