public class HazelcastClusterManager
extends com.budjb.spring.distributed.cluster.AbstractClusterManager
implements org.springframework.beans.factory.InitializingBean
ClusterManager implementation backed by Hazelcast.| Constructor and Description |
|---|
HazelcastClusterManager(com.hazelcast.core.HazelcastInstance hazelcastInstance,
com.budjb.spring.distributed.cluster.ClusterConfigurationProperties clusterConfigurationProperties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
java.util.List<com.budjb.spring.distributed.cluster.ClusterMember> |
getClusterMembers() |
protected java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
protected <T> java.util.concurrent.Future<T> |
submitInstruction(com.budjb.spring.distributed.cluster.ClusterMember clusterMember,
com.budjb.spring.distributed.cluster.Instruction<? extends T> instruction) |
public HazelcastClusterManager(com.hazelcast.core.HazelcastInstance hazelcastInstance,
com.budjb.spring.distributed.cluster.ClusterConfigurationProperties clusterConfigurationProperties)
hazelcastInstance - Hazelcast instance backing the cluster manager.clusterConfigurationProperties - Cluster configuration properties.public java.util.List<com.budjb.spring.distributed.cluster.ClusterMember> getClusterMembers()
getClusterMembers in interface com.budjb.spring.distributed.cluster.ClusterManagerprotected <T> java.util.concurrent.Future<T> submitInstruction(com.budjb.spring.distributed.cluster.ClusterMember clusterMember,
com.budjb.spring.distributed.cluster.Instruction<? extends T> instruction)
submitInstruction in class com.budjb.spring.distributed.cluster.AbstractClusterManagerprotected java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in class com.budjb.spring.distributed.cluster.AbstractClusterManagerpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean