net.sf.ehcache.constructs.asynchronous
public interface Command extends Serializable
instanceof
a Throwable
in the array are expected
and will result in reexecution up to the maximum number of attempts, after the delay between repeats.
allowing a delay each time.
Version: $Id: Command.java 59 2006-04-30 03:41:39Z gregluck $
Method Summary | |
---|---|
void | execute()
Executes the command. |
int | getDelayBetweenAttemptsInSeconds() |
int | getNumberOfAttempts() |
Class[] | getThrowablesToRetryOn()
The AsynchronousCommandExecutor may also be fault tolerant. |
Throws: Throwable A command could do anything and could throw any Exception or Error
Returns: the delay between attempts, in seconds. A non-zero value implies fault tolerance and only makes sense if getThrowablesToRetryOn is non-null.
Returns: the number of times the dispatcher should try to send the message. A non-zero value implies fault tolerance and only makes sense if getThrowablesToRetryOn is non-null.
Returns: a list of Classs. It only makes sense for the list to contain Classes which are subclasses of Throwable