Package org.infinispan.distexec
Interface DistributedTask<T>
-
public interface DistributedTask<T>
DistributedTask describes all relevant attributes of a distributed task, most importantly its execution policy, fail over policy and its timeout.- Since:
- 5.2
- Author:
- Manik Surtani, Vladimir Blagojevic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Callable<T>
getCallable()
ReturnsCallable
for this taskDistributedTaskExecutionPolicy
getTaskExecutionPolicy()
Returns customDistributedTaskExecutionPolicy
for this taskDistributedTaskFailoverPolicy
getTaskFailoverPolicy()
Returns customDistributedTaskFailoverPolicy
for this tasklong
timeout()
Returns timeout for the execution of this task
-
-
-
Method Detail
-
timeout
long timeout()
Returns timeout for the execution of this task- Returns:
- task timeout
-
getTaskExecutionPolicy
DistributedTaskExecutionPolicy getTaskExecutionPolicy()
Returns customDistributedTaskExecutionPolicy
for this task- Returns:
- task DistributedTaskExecutionPolicy
-
getTaskFailoverPolicy
DistributedTaskFailoverPolicy getTaskFailoverPolicy()
Returns customDistributedTaskFailoverPolicy
for this task- Returns:
-
-