Inspector | Message | Severity | Location |
---|---|---|---|
Java Inspector 048 | Copyrights information should be present in each file. | 1 | |
Java Inspector 089 | Undocumented top level type | 2 | 3:1 |
Java Inspector 089 | Undocumented field | 2 | 5:9 |
Java Inspector 089 | Undocumented field | 2 | 7:9 |
Java Inspector 047 | No need to provide (public, abstract, ) modifiers for interface methods | 3 | 5:9 |
Java Inspector 047 | No need to provide (public, abstract, ) modifiers for interface methods | 3 | 7:9 |
1package biz.hammurapi.config;
2
3public interface RestartCommand extends Runnable {
4
5 public static final String RESTART_DELAY_PROPERTY = RestartCommand.class.getName()+":restart-delay";
6
7 public static final long DEFAULT_RESTART_DELAY = 5000;
8
9 /**
10 * @return Number of times the command was already executed.
11 */
12 int getAttempt();
13
14 /**
15 * @return Number of milliseconds the command waits before creating
16 * and starting the object. The command waits only if number of attempts is
17 * more than zero. The value is taken from the system property with the name
18 * specified in RESTART_DELAY_PROPERTY constant. Default restart delay is specified in
19 * DEFAULT_RESTART_DELAY constant.
20 */
21 long getRestartDelay();
22}
23