Class HazelcastLocalInstanceRegistrar
java.lang.Object
org.springframework.integration.hazelcast.HazelcastLocalInstanceRegistrar
- All Implemented Interfaces:
SmartInitializingSingleton
This class creates an internal configuration
MultiMap to cache Hazelcast instances' socket
address information which used Hazelcast event-driven inbound channel adapter(s). It
also enables a Hazelcast MembershipListener to listen for
membership updates.- Since:
- 6.0
- Author:
- Eren Avsarogullari, Artem Bilan
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe bean name for theHazelcastLocalInstanceRegistrarinstance.static final StringThe name for the Hazelcast Lock used for membership registration.static final StringThe name for the Hazelcast MultiMap used for membership registration. -
Constructor Summary
ConstructorsConstructorDescriptionConstructHazelcastLocalInstanceRegistrarbased on the local JVMHazelcastInstances if any.HazelcastLocalInstanceRegistrar(com.hazelcast.core.HazelcastInstance hazelcastInstance) ConstructHazelcastLocalInstanceRegistrarbased on the providedHazelcastInstance. -
Method Summary
-
Field Details
-
BEAN_NAME
The bean name for theHazelcastLocalInstanceRegistrarinstance.- See Also:
-
SPRING_INTEGRATION_INTERNAL_CLUSTER_MULTIMAP
The name for the Hazelcast MultiMap used for membership registration.- See Also:
-
SPRING_INTEGRATION_INTERNAL_CLUSTER_LOCK
The name for the Hazelcast Lock used for membership registration.- See Also:
-
-
Constructor Details
-
HazelcastLocalInstanceRegistrar
public HazelcastLocalInstanceRegistrar()ConstructHazelcastLocalInstanceRegistrarbased on the local JVMHazelcastInstances if any. -
HazelcastLocalInstanceRegistrar
public HazelcastLocalInstanceRegistrar(com.hazelcast.core.HazelcastInstance hazelcastInstance) ConstructHazelcastLocalInstanceRegistrarbased on the providedHazelcastInstance.- Parameters:
hazelcastInstance- theHazelcastInstanceto use.
-
-
Method Details
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceSmartInitializingSingleton
-