public class HazelcastExecutorClusterEventService extends Object implements HazelcastClusterEventService
HazelcastClusterEventService
which uses a Hazelcast remote executor to distribute
events. This is probably not the most efficient way to do this - using a Hazelcast ITopic
is likely to perform better.Modifier and Type | Field and Description |
---|---|
protected static String |
EXECUTOR_SVC_NAME
Name of the executor service to use for executing tasks.
|
Constructor and Description |
---|
HazelcastExecutorClusterEventService(com.hazelcast.core.HazelcastInstance hazelcast) |
Modifier and Type | Method and Description |
---|---|
com.hazelcast.core.IExecutorService |
getExecutorService()
Returns the distributed executor service for the given
|
void |
publishEventToCluster(Object clusterEvent) |
void |
start() |
void |
stop() |
protected static final String EXECUTOR_SVC_NAME
public HazelcastExecutorClusterEventService(com.hazelcast.core.HazelcastInstance hazelcast)
public void publishEventToCluster(Object clusterEvent)
publishEventToCluster
in interface HazelcastClusterEventService
public void start()
start
in interface HazelcastClusterEventService
public void stop()
stop
in interface HazelcastClusterEventService
public com.hazelcast.core.IExecutorService getExecutorService()
HazelcastClusterEventService
Note: Note that it don't support invokeAll/Any and don't have standard shutdown behavior
See HazelcastInstance.getExecutorService(String)
for more details
getExecutorService
in interface HazelcastClusterEventService
Copyright © 2003–2016 Atlassian. All rights reserved.