public class FixedDelayRestartBackoffTimeStrategy extends Object implements RestartBackoffTimeStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
FixedDelayRestartBackoffTimeStrategy.FixedDelayRestartBackoffTimeStrategyFactory
The factory for creating
FixedDelayRestartBackoffTimeStrategy. |
RestartBackoffTimeStrategy.Factory| Modifier and Type | Method and Description |
|---|---|
boolean |
canRestart()
Returns whether a restart should be conducted.
|
static FixedDelayRestartBackoffTimeStrategy.FixedDelayRestartBackoffTimeStrategyFactory |
createFactory(org.apache.flink.configuration.Configuration configuration) |
long |
getBackoffTime()
Returns the delay to do the restarting.
|
int |
getMaxNumberRestartAttempts() |
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 int getMaxNumberRestartAttempts()
public void notifyFailure(Throwable cause)
RestartBackoffTimeStrategynotifyFailure in interface RestartBackoffTimeStrategycause - of the task failurepublic static FixedDelayRestartBackoffTimeStrategy.FixedDelayRestartBackoffTimeStrategyFactory createFactory(org.apache.flink.configuration.Configuration configuration)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.