public class ExponentialDelayRestartBackoffTimeStrategy extends Object implements RestartBackoffTimeStrategy
If the tasks are running smoothly for some time, backoff is reset to its initial value.
| Modifier and Type | Class and Description |
|---|---|
static class |
ExponentialDelayRestartBackoffTimeStrategy.ExponentialDelayRestartBackoffTimeStrategyFactory
The factory for creating
ExponentialDelayRestartBackoffTimeStrategy. |
RestartBackoffTimeStrategy.Factory| Modifier and Type | Method and Description |
|---|---|
boolean |
canRestart()
Returns whether a restart should be conducted.
|
static ExponentialDelayRestartBackoffTimeStrategy.ExponentialDelayRestartBackoffTimeStrategyFactory |
createFactory(org.apache.flink.configuration.Configuration configuration) |
long |
getBackoffTime()
Returns the delay to do the restarting.
|
void |
notifyFailure(Throwable cause)
Notify the strategy about the task failure cause.
|
String |
toString() |
public boolean canRestart()
RestartBackoffTimeStrategycanRestart in interface RestartBackoffTimeStrategypublic long getBackoffTime()
RestartBackoffTimeStrategygetBackoffTime in interface RestartBackoffTimeStrategypublic void notifyFailure(Throwable cause)
RestartBackoffTimeStrategynotifyFailure in interface RestartBackoffTimeStrategycause - of the task failurepublic static ExponentialDelayRestartBackoffTimeStrategy.ExponentialDelayRestartBackoffTimeStrategyFactory createFactory(org.apache.flink.configuration.Configuration configuration)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.