public class FailureRateRestartBackoffTimeStrategy extends Object implements RestartBackoffTimeStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
FailureRateRestartBackoffTimeStrategy.FailureRateRestartBackoffTimeStrategyFactory
The factory for creating
FailureRateRestartBackoffTimeStrategy. |
RestartBackoffTimeStrategy.Factory| Modifier and Type | Method and Description |
|---|---|
boolean |
canRestart()
Returns whether a restart should be conducted.
|
static FailureRateRestartBackoffTimeStrategy.FailureRateRestartBackoffTimeStrategyFactory |
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 FailureRateRestartBackoffTimeStrategy.FailureRateRestartBackoffTimeStrategyFactory createFactory(org.apache.flink.configuration.Configuration configuration)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.