* if both values are the same, no restart will be applied.
*
* @param millisBetweenRetries The millisBetweenRetries to set.
*/
public void setTimeout(long millisBetweenRetries) {
RetryTemplate rt;
int retries;
synchronized (monitor) {
this.retryTimeout = millisBetweenRetries;
rt = retryTemplate;
retries = this.retriesNumber;
}
if (rt != null) {
rt.reset(retries, millisBetweenRetries);
}
}