public interface RestartStrategy
ExecutionGraph restarts.| Modifier and Type | Method and Description |
|---|---|
boolean |
canRestart()
True if the restart strategy can be applied to restart the
ExecutionGraph. |
CompletableFuture<Void> |
restart(RestartCallback restarter,
ScheduledExecutor executor)
Called by the ExecutionGraph to eventually trigger a full recovery.
|
boolean canRestart()
ExecutionGraph.CompletableFuture<Void> restart(RestartCallback restarter, ScheduledExecutor executor)
The thread that calls this method is not supposed to block/sleep.
restarter - The hook to restart the ExecutionGraphexecutor - An scheduled executor to delay the restartCompletableFuture that will be completed when the restarting process is done.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.