public abstract class WorkerExecutorHelper
extends java.lang.Object
ExecutorService.| Constructor and Description |
|---|
WorkerExecutorHelper() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
await()
Wait for all jobs of the current build operation to complete
|
abstract boolean |
needsAwait()
Returns
true if await() MUST be called at the end of
the task. |
static WorkerExecutorHelper |
newInstance(org.gradle.api.model.ObjectFactory objectFactory)
Creates a new instance of the
WorkerExecutorHelper depending
on the Gradle version |
abstract void |
submit(Job job)
Execute a job asynchronously
|
public static WorkerExecutorHelper newInstance(org.gradle.api.model.ObjectFactory objectFactory)
WorkerExecutorHelper depending
on the Gradle versionobjectFactory - creates Gradle model objectspublic abstract void submit(Job job)
job - the job to executepublic abstract void await()