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 HazelcastClusterEventServicepublic void start()
start in interface HazelcastClusterEventServicepublic void stop()
stop in interface HazelcastClusterEventServicepublic 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 HazelcastClusterEventServiceCopyright © 2003–2019 Atlassian. All rights reserved.