]
Diego Lovison reassigned ISPN-9685:
-----------------------------------
Assignee: (was: Diego Lovison)
Update Distributed task execution policy documentation -
DistributedExecutorService is deprecated
-------------------------------------------------------------------------------------------------
Key: ISPN-9685
URL:
https://issues.jboss.org/browse/ISPN-9685
Project: Infinispan
Issue Type: Bug
Reporter: Diego Lovison
Priority: Major
Since 9.1 DistributedExecutorService is deprecated
In the document section "Distributed task execution policy" (
http://infinispan.org/docs/stable/user_guide/user_guide.html#distributed_...
) the code example
{code:java}
DistributedExecutorService des = new DefaultExecutorService(cache);
DistributedTaskBuilder<Boolean> taskBuilder = des.createDistributedTaskBuilder(new
SomeCallable());
taskBuilder.executionPolicy(DistributedTaskExecutionPolicy.SAME_RACK);
DistributedTask<Boolean> distributedTask = taskBuilder.build();
Future<Boolean> future = des.submit(distributedTask);
Boolean r = future.get();
{code}
uses a deprecated class DistributedExecutorService
We should update the document.