@Incubating public interface WorkerDaemonExecutor
| Modifier and Type | Method and Description |
|---|---|
WorkerDaemonExecutor |
classpath(Iterable<File> files)
Adds a set of files to the classpath associated with the daemon process.
|
void |
execute()
Synchronously executes the work in a daemon process.
|
WorkerDaemonExecutor |
forkOptions(Action<? super JavaForkOptions> forkOptionsAction)
Executes the provided action against the
JavaForkOptions object associated with this builder. |
JavaForkOptions |
getForkOptions()
Returns the
JavaForkOptions object associated with this builder. |
WorkerDaemonExecutor |
params(Serializable... params)
Sets any initialization parameters to use when constructing an instance of the implementation class.
|
WorkerDaemonExecutor classpath(Iterable<File> files)
files - - the files to add to the classpathWorkerDaemonExecutor forkOptions(Action<? super JavaForkOptions> forkOptionsAction)
JavaForkOptions object associated with this builder.forkOptionsAction - - An action to configure the JavaForkOptions for this builderJavaForkOptions getForkOptions()
JavaForkOptions object associated with this builder.JavaForkOptions of this builderWorkerDaemonExecutor params(Serializable... params)
params - - the parameters to use during constructionvoid execute()
throws WorkerDaemonExecutionException
WorkerDaemonExecutionException - when a failure occurs while executing the work.