saker.build Documentation TaskDoc JavaDoc Packages
public static final class TaskInvocationConfiguration.Builder
Builder class for TaskInvocationConfiguration.

Use builder() to create a new instance.

Methods
public TaskInvocationConfiguration
Builds the task invocation configuration.
public TaskInvocationConfiguration
Builds the task invocation configuration and allows reusing this builder.
public TaskExecutionEnvironmentSelector
Gets the currently set execution environment selector.
public int
Gets the current value of the requested computation tokens.
public boolean
Gets the current value of the cacheability.
public boolean
Gets the current value of the inner task computationality.
public boolean
Gets if the task prefers to be run on the local build environment.
public boolean
Gets the current value of the remote dispatchability.
public boolean
Gets the current value of the short task setting.
public Builder
setCacheable(boolean cacheable)
Sets if the task is cacheable.
public Builder
public Builder
setInnerTasksComputationals(boolean innerTasksComputationals)
Sets if the inner tasks of the build task are computational.
public Builder
setPrefersLocalEnvironment(boolean prefersLocalEnvironment)
public Builder
setRemoteDispatchable(boolean remoteDispatchable)
Sets if the task is remote dispatchable.
public Builder
setRequestedComputationTokenCount(int computationTokenCount)
public Builder
setShort(boolean shortTask)
Sets if the task is short.
Builds the task invocation configuration.

The builder cannot be reused after this call.

The created configuration.
Builds the task invocation configuration and allows reusing this builder.
The created configuration.
Gets the currently set execution environment selector.
The environment selector.
saker.build 0.8.14
Gets the current value of the requested computation tokens.
The number of requested computation tokens.
saker.build 0.8.14
public boolean isCacheable()
Gets the current value of the cacheability.
true if the task is cacheable.
saker.build 0.8.14
Gets the current value of the inner task computationality.
true if the inner tasks are computationals.
saker.build 0.8.14
public boolean isPrefersLocalEnvironment()
Gets if the task prefers to be run on the local build environment.
true if the local environment is preferred.
saker.build 0.8.16
public boolean isRemoteDispatchable()
Gets the current value of the remote dispatchability.
true if the task is remote dispatchable.
saker.build 0.8.14
public boolean isShort()
Gets the current value of the short task setting.
true if the task is short.
saker.build 0.8.14
public Builder setCacheable(boolean cacheable)
Sets if the task is cacheable.
cacheabletrue if the task is remote dispatchable.
this
Sets the execution environment selector.

If null is passed as an argument, AnyTaskExecutionEnvironmentSelector is used.

environmentSelectorThe environment selector.
this
public Builder setInnerTasksComputationals(boolean innerTasksComputationals)
Sets if the inner tasks of the build task are computational.
innerTasksComputationalstrue if the inner tasks are computational.
this
public Builder setPrefersLocalEnvironment(boolean prefersLocalEnvironment)
prefersLocalEnvironmenttrue if the local environment is preferred.
this
saker.build 0.8.16
public Builder setRemoteDispatchable(boolean remoteDispatchable)
Sets if the task is remote dispatchable.
remoteDispatchabletrue if the task is remote dispatchable.
this
public Builder setRequestedComputationTokenCount(int computationTokenCount)
computationTokenCountThe computation token count.
this
public Builder setShort(boolean shortTask)
Sets if the task is short.
shortTasktrue if the task is short.
this