Domanda

I am trying to play with the distributed executor service in hazelcast.

HazelcastInstance hz = Hazelcast.newHazelcastInstance(cfg);
IExecutorService es = hz.getExecutorService("default1");

I know that ExecutorService.newFixedThreadPool(8) is the way to set the number of threads for normal executor service, but not sure about the Distributed ExecutorService

ExecutorConfig ecfg = new ExecutorConfig();
ecfg.setPoolSize(5);
config.addExecutorConfig(ecfg);

Is this correct?

È stato utile?

Soluzione

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top