Class HazelcastExecutorClusterEventService
- java.lang.Object
-
- com.atlassian.confluence.cluster.hazelcast.HazelcastExecutorClusterEventService
-
- All Implemented Interfaces:
HazelcastClusterEventService
public class HazelcastExecutorClusterEventService extends Object implements HazelcastClusterEventService
An implementation ofHazelcastClusterEventServicewhich uses a Hazelcast remote executor to distribute events. This is probably not the most efficient way to do this - using a HazelcastITopicis likely to perform better.- Since:
- 5.5
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringEXECUTOR_SVC_NAMEName of the executor service to use for executing tasks.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.hazelcast.core.IExecutorServicegetExecutorService()Returns the distributed executor service for the givenvoidpublishEventToCluster(Object clusterEvent)voidstart()voidstop()
-
-
-
Field Detail
-
EXECUTOR_SVC_NAME
protected static final String EXECUTOR_SVC_NAME
Name of the executor service to use for executing tasks.- See Also:
- Constant Field Values
-
-
Method Detail
-
publishEventToCluster
public void publishEventToCluster(Object clusterEvent)
- Specified by:
publishEventToClusterin interfaceHazelcastClusterEventService
-
start
public void start()
- Specified by:
startin interfaceHazelcastClusterEventService
-
stop
public void stop()
- Specified by:
stopin interfaceHazelcastClusterEventService
-
getExecutorService
public com.hazelcast.core.IExecutorService getExecutorService()
Description copied from interface:HazelcastClusterEventServiceReturns the distributed executor service for the givenNote: Note that it don't support invokeAll/Any and don't have standard shutdown behavior
See
HazelcastInstance.getExecutorService(String)for more details- Specified by:
getExecutorServicein interfaceHazelcastClusterEventService- Returns:
- executor service
-
-