org.apache.excalibur.event.command
Interface RepeatedCommand
- All Superinterfaces:
- Command, DelayedCommand, Executable, Signal
- All Known Implementing Classes:
- DefaultPoolManager.PoolManagerCommand
- public interface RepeatedCommand
- extends DelayedCommand
A Signal is a specific type of QueueElement that denotes a Control code for the Queue system.
- Author:
| 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.framework.activity.Executable |
execute |
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.
-
-
- Returns:
- the number of times the command repeats
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.
-
-
- Returns:
- the number of milliseconds between each repeat
Please see keelframework.org for information about new Keel releases.