org.glassfish.pfl.tf.timer.impl
Class TimerGroupImpl

java.lang.Object
  extended by org.glassfish.pfl.tf.timer.spi.NamedBase
      extended by org.glassfish.pfl.tf.timer.impl.NamedBaseImpl
          extended by org.glassfish.pfl.tf.timer.impl.ControllableBase
              extended by 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.


Method Summary
 boolean add(Controllable con)
           
 Set<ControllableBase> contents()
          Return an unmodifiable set of the contents of this Controllable.
 boolean remove(Controllable con)
           
 
Methods inherited from class org.glassfish.pfl.tf.timer.impl.ControllableBase
description, disable, enable, id, isEnabled
 
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
 
Methods inherited from interface org.glassfish.pfl.tf.timer.spi.Named
factory, name
 

Method Detail

contents

public 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 interface Controllable
Overrides:
contents in class ControllableBase

add

public boolean add(Controllable con)
Specified by:
add in interface TimerGroup

remove

public boolean remove(Controllable con)
Specified by:
remove in interface TimerGroup


Copyright © 2013 Oracle. All Rights Reserved.