public class NoRestartStrategy extends Object implements RestartStrategy
ExecutionGraph
.Modifier and Type | Class and Description |
---|---|
static class |
NoRestartStrategy.NoRestartStrategyFactory |
Constructor and Description |
---|
NoRestartStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRestart()
True if the restart strategy can be applied to restart the
ExecutionGraph . |
static NoRestartStrategy.NoRestartStrategyFactory |
createFactory(Configuration configuration)
Creates a NoRestartStrategy instance.
|
void |
restart(RestartCallback restarter,
ScheduledExecutor executor)
Called by the ExecutionGraph to eventually trigger a full recovery.
|
String |
toString() |
public boolean canRestart()
RestartStrategy
ExecutionGraph
.canRestart
in interface RestartStrategy
public void restart(RestartCallback restarter, ScheduledExecutor executor)
RestartStrategy
The thread that calls this method is not supposed to block/sleep.
restart
in interface RestartStrategy
restarter
- The hook to restart the ExecutionGraphexecutor
- An scheduled executor to delay the restartpublic static NoRestartStrategy.NoRestartStrategyFactory createFactory(Configuration configuration)
configuration
- Configuration object which is ignoredCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.