biz.hammurapi.config
Interface RestartCommand

All Superinterfaces:
java.lang.Runnable

public interface RestartCommand
extends java.lang.Runnable


Field Summary
static long DEFAULT_RESTART_DELAY
           
static java.lang.String RESTART_DELARY_PROPERTY
           
 
Method Summary
 int getAttempt()
           
 long getRestartDelay()
           
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

RESTART_DELARY_PROPERTY

static final java.lang.String RESTART_DELARY_PROPERTY

DEFAULT_RESTART_DELAY

static final long DEFAULT_RESTART_DELAY
See Also:
Constant Field Values
Method Detail

getAttempt

int getAttempt()
Returns:
Number of times the command was already executed.

getRestartDelay

long getRestartDelay()
Returns:
Number of milliseconds the command waits before creating and starting the object. The command waits only if number of attempts is more than zero. The value is taken from the system property with the name specified in RESTART_DELAY_PROPERTY constant. Default restart delay is specified in DEFAULT_RESTART_DELAY constant.


Copyright © 2003 Hammurapi Group. All Rights Reserved.