KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > command > DelayedCommand


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.excalibur.command;
9
10 import org.apache.avalon.framework.activity.Executable;
11 import org.apache.avalon.excalibur.event.Signal;
12
13 /**
14  * A DelayedCommand is a specific type of Command that denotes a an execution
15  * unit that will be delayed at least X number of milliseconds. The mechanism
16  * is not guaranteed to be deterministic.
17  *
18  * @author <a HREF="mailto:bloritsch@apache.org">Berin Loritsch</a>
19  */

20 public interface DelayedCommand extends Command
21 {
22     /**
23      * Sets the initial delay for the Command. This defaults to 0 milliseconds.
24      * The value must be positive.
25      */

26     long getDelayInterval();
27 }
Popular Tags