public abstract class GradleWorkerExecutorEngine extends Object implements CommandLineToolExecutionEngine<GradleWorkerExecutorEngine.Handle>
Modifier and Type | Class and Description |
---|---|
static class |
GradleWorkerExecutorEngine.GradleWorkerExecutorEngineWorkAction |
static interface |
GradleWorkerExecutorEngine.GradleWorkerExecutorEngineWorkParameters |
static class |
GradleWorkerExecutorEngine.Handle |
Constructor and Description |
---|
GradleWorkerExecutorEngine() |
Modifier and Type | Method and Description |
---|---|
protected abstract WorkerExecutor |
getWorkerExecutor() |
GradleWorkerExecutorEngine.Handle |
submit(CommandLineToolInvocation invocation)
Schedule specified
CommandLineToolInvocation for execution using this engine. |
@Inject protected abstract WorkerExecutor getWorkerExecutor()
public GradleWorkerExecutorEngine.Handle submit(CommandLineToolInvocation invocation)
CommandLineToolExecutionEngine
CommandLineToolInvocation
for execution using this engine.
Once the execution is scheduled, it's up to the engine to decide when the execution will start.
The returned handle allows some control over the execution, not all engine support the same set of features.
Refer to the specific execution engine documentation.
NOTE: A execution engine may not support all the feature an invocation may be requesting. It is up to the strategy of each engine to decide if the feature will be ignored or an exception will be thrown.
submit
in interface CommandLineToolExecutionEngine<GradleWorkerExecutorEngine.Handle>
invocation
- the command line invocation information to executeCommandLineToolExecutionHandle
instance, never null.