public class ConstantRetryStrategy extends Object implements RetryStrategy
RetryStrategy with constant time.| Constructor and Description |
|---|
ConstantRetryStrategy()
Creates a new instance for do not retry tasks.
|
ConstantRetryStrategy(int maxRetryCount)
Creates a new instance for do not retry tasks.
|
ConstantRetryStrategy(int maxRetryCount,
long interval)
Creates a new instance.
|
ConstantRetryStrategy(int maxRetryCount,
long minInterval,
long maxInterval)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
RetryObject |
newInstance(String taskName)
Creates a new retry object.
|
public ConstantRetryStrategy()
public ConstantRetryStrategy(int maxRetryCount)
maxRetryCount - maximum retry count (>= 0)public ConstantRetryStrategy(int maxRetryCount,
long interval)
maxRetryCount - maximum retry count (>= 0)interval - retry interval (ms)public ConstantRetryStrategy(int maxRetryCount,
long minInterval,
long maxInterval)
maxRetryCount - maximum retry count (>= 0)minInterval - minimum retry interval (ms)maxInterval - maximum retry interval (ms)public RetryObject newInstance(String taskName)
RetryStrategynewInstance in interface RetryStrategytaskName - the task nameCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.