Diego Lovison created ISPN-9685:
-----------------------------------
Summary: 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
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.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)