org.apache.avalon.excalibur.command
Interface RepeatedCommand

All Superinterfaces:
Command, DelayedCommand, org.apache.avalon.framework.activity.Executable, QueueElement, Signal

public interface RepeatedCommand
extends DelayedCommand

A Signal is a specific type of QueueElement that denotes a Control code for the Queue system.

Author:
Berin Loritsch

Method Summary
 int getNumberOfRepeats()
          If the value is less than 1 (0 or negative), the command repeats for as long as the CommandManager is running.
 long getRepeatInterval()
          Gets the repeat interval so that the CommandQueue keeps it for the specified amount of time before enqueuing it again.
 
Methods inherited from interface org.apache.avalon.excalibur.command.DelayedCommand
getDelayInterval
 
Methods inherited from interface org.apache.avalon.framework.activity.Executable
execute
 

Method Detail

getNumberOfRepeats

public int getNumberOfRepeats()
If the value is less than 1 (0 or negative), the command repeats for as long as the CommandManager is running. If the value is above 0, the Command repeats only for that specific amount of times before it is removed from the system.

getRepeatInterval

public long getRepeatInterval()
Gets the repeat interval so that the CommandQueue keeps it for the specified amount of time before enqueuing it again. This value must not be negative.


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.