public interface ExecutionSubContext extends CompletionListenable
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Hook to cleanup the resources of this context.
|
java.util.concurrent.CompletableFuture<io.crate.jobs.CompletionState> |
completionFuture() |
int |
id() |
void |
kill(java.lang.Throwable throwable) |
java.lang.String |
name() |
void |
prepare()
In the prepare phase implementations of this interface can allocate any resources.
|
void |
start()
In the start phase implementations of this interface are required to start any executors.
|
void prepare() throws java.lang.Exception
java.lang.Exception
void start()
In this phase failures must not be propagated to downstream phases directly.
However, it is ok for the started executors to use their downstreams to propagate failures.
void kill(@Nullable java.lang.Throwable throwable)
java.lang.String name()
int id()
void cleanup()
java.util.concurrent.CompletableFuture<io.crate.jobs.CompletionState> completionFuture()
completionFuture
in interface CompletionListenable