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
Modifier and TypeFieldDescriptionstatic final String
The bean name for theHazelcastLocalInstanceRegistrar
instance.static final String
The name for the Hazelcast Lock used for membership registration.static final String
The name for the Hazelcast MultiMap used for membership registration. -
Constructor Summary
ConstructorDescriptionConstructHazelcastLocalInstanceRegistrar
based on the local JVMHazelcastInstance
s if any.HazelcastLocalInstanceRegistrar
(com.hazelcast.core.HazelcastInstance hazelcastInstance) ConstructHazelcastLocalInstanceRegistrar
based on the providedHazelcastInstance
. -
Method Summary
-
Field Details
-
BEAN_NAME
The bean name for theHazelcastLocalInstanceRegistrar
instance.- 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()ConstructHazelcastLocalInstanceRegistrar
based on the local JVMHazelcastInstance
s if any. -
HazelcastLocalInstanceRegistrar
public HazelcastLocalInstanceRegistrar(com.hazelcast.core.HazelcastInstance hazelcastInstance) ConstructHazelcastLocalInstanceRegistrar
based on the providedHazelcastInstance
.- Parameters:
hazelcastInstance
- theHazelcastInstance
to use.
-
-
Method Details
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiated
in interfaceSmartInitializingSingleton
-