Package org.infinispan.distexec
Interface DistributedTaskBuilder<T>
-
public interface DistributedTaskBuilder<T>
DistributedTaskBuilder is a factory interface for DistributedTask- Since:
- 5.2
- Author:
- Manik Surtani, Vladimir Blagojevic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DistributedTask<T>
build()
Completes creation of DistributedTask with the currently provided attributes of this DistributedTaskBuilderDistributedTaskBuilder<T>
callable(Callable<T> callable)
Provide relevantCallable
for theDistributedTask
DistributedTaskBuilder<T>
executionPolicy(DistributedTaskExecutionPolicy policy)
ProvideDistributedTaskExecutionPolicy
for the task being builtDistributedTaskBuilder<T>
failoverPolicy(DistributedTaskFailoverPolicy policy)
ProvideDistributedTaskFailoverPolicy
for the task being builtDistributedTaskBuilder<T>
timeout(long timeout, TimeUnit tu)
ProvideDistributedTask
task timeout
-
-
-
Method Detail
-
callable
DistributedTaskBuilder<T> callable(Callable<T> callable)
Provide relevantCallable
for theDistributedTask
- Parameters:
callable
- for the DistribtuedTask being built- Returns:
- this DistributedTaskBuilder
-
timeout
DistributedTaskBuilder<T> timeout(long timeout, TimeUnit tu)
ProvideDistributedTask
task timeout- Parameters:
timeout
- for the tasktu
-TimeUnit
for the task being built- Returns:
- this DistributedTaskBuilder
-
executionPolicy
DistributedTaskBuilder<T> executionPolicy(DistributedTaskExecutionPolicy policy)
ProvideDistributedTaskExecutionPolicy
for the task being built- Parameters:
policy
- DistributedTaskExecutionPolicy for the task- Returns:
- this DistributedTaskBuilder
-
failoverPolicy
DistributedTaskBuilder<T> failoverPolicy(DistributedTaskFailoverPolicy policy)
ProvideDistributedTaskFailoverPolicy
for the task being built- Parameters:
policy
- DistributedTaskFailoverPolicy for the task- Returns:
- this DistributedTaskBuilder
-
build
DistributedTask<T> build()
Completes creation of DistributedTask with the currently provided attributes of this DistributedTaskBuilder- Returns:
- the built task ready for use
-
-