Top Description Fields Constructors Methods
org.glassfish.pfl.tf.timer.impl

public Class TimerImpl

extends ControllableBase
implements Timer
Class Inheritance
All Implemented Interfaces
org.glassfish.pfl.tf.timer.spi.Timer, org.glassfish.pfl.tf.timer.spi.Controllable, org.glassfish.pfl.tf.timer.spi.Named
Imports
java.util.concurrent.atomic.AtomicBoolean, org.glassfish.pfl.tf.timer.spi.Timer

This interface exists because a Controllable is not loggable: only a Timer is loggable (we do not want TimerGroup to be loggable).
Author
Ken Cavanaugh

Field Summary

Modifier and TypeField and Description
private AtomicBoolean

Constructor Summary

AccessConstructor and Description
pack-priv
TimerImpl(int id, TimerFactoryImpl factory, String name, String description)

Method Summary

Modifier and TypeMethod and Description
public final boolean
isActivated()

Implements org.glassfish.pfl.tf.timer.spi.Timer.isActivated.

Return true if this Timer is ready to create TimerEvents.

pack-priv void
setActivated(boolean flag)

Inherited from org.glassfish.pfl.tf.timer.impl.ControllableBase:
contentsdescriptiondescriptiondisableenableidisEnabledtransitiveClosure

Field Detail

isActivatedback to summary
private AtomicBoolean isActivated

Constructor Detail

TimerImplback to summary
pack-priv TimerImpl(int id, TimerFactoryImpl factory, String name, String description)

Method Detail

isActivatedback to summary
public final boolean isActivated()

Implements org.glassfish.pfl.tf.timer.spi.Timer.isActivated.

Doc from org.glassfish.pfl.tf.timer.spi.Timer.isActivated.

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.

setActivatedback to summary
pack-priv void setActivated(boolean flag)