Class HazelcastLocalInstanceRegistrar

java.lang.Object
org.springframework.integration.hazelcast.HazelcastLocalInstanceRegistrar
All Implemented Interfaces:
SmartInitializingSingleton

public class HazelcastLocalInstanceRegistrar extends Object implements 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 Details

    • BEAN_NAME

      public static final String BEAN_NAME
      The bean name for the HazelcastLocalInstanceRegistrar instance.
      See Also:
    • SPRING_INTEGRATION_INTERNAL_CLUSTER_MULTIMAP

      public static final String SPRING_INTEGRATION_INTERNAL_CLUSTER_MULTIMAP
      The name for the Hazelcast MultiMap used for membership registration.
      See Also:
    • SPRING_INTEGRATION_INTERNAL_CLUSTER_LOCK

      public static final String SPRING_INTEGRATION_INTERNAL_CLUSTER_LOCK
      The name for the Hazelcast Lock used for membership registration.
      See Also:
  • Constructor Details

    • HazelcastLocalInstanceRegistrar

      public HazelcastLocalInstanceRegistrar()
      Construct HazelcastLocalInstanceRegistrar based on the local JVM HazelcastInstances if any.
    • HazelcastLocalInstanceRegistrar

      public HazelcastLocalInstanceRegistrar(com.hazelcast.core.HazelcastInstance hazelcastInstance)
      Construct HazelcastLocalInstanceRegistrar based on the provided HazelcastInstance.
      Parameters:
      hazelcastInstance - the HazelcastInstance to use.
  • Method Details