@PublicEvolving public class RestartStrategies extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RestartStrategies.FixedDelayRestartStrategyConfiguration |
static class |
RestartStrategies.NoRestartStrategyConfiguration |
static class |
RestartStrategies.RestartStrategyConfiguration |
Constructor and Description |
---|
RestartStrategies() |
Modifier and Type | Method and Description |
---|---|
static RestartStrategies.RestartStrategyConfiguration |
fixedDelayRestart(int restartAttempts,
long delayBetweenAttempts)
Generates a FixedDelayRestartStrategyConfiguration.
|
static RestartStrategies.RestartStrategyConfiguration |
noRestart()
Generates NoRestartStrategyConfiguration
|
public static RestartStrategies.RestartStrategyConfiguration noRestart()
public static RestartStrategies.RestartStrategyConfiguration fixedDelayRestart(int restartAttempts, long delayBetweenAttempts)
restartAttempts
- Number of restart attempts for the FixedDelayRestartStrategydelayBetweenAttempts
- Delay in-between restart attempts for the FixedDelayRestartStrategyCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.