Class ApplicationContextMembershipListener

java.lang.Object
org.springframework.geode.distributed.event.MembershipListenerAdapter<ApplicationContextMembershipListener>
org.springframework.geode.distributed.event.ApplicationContextMembershipListener
All Implemented Interfaces:
EventListener, org.apache.geode.distributed.internal.MembershipListener

public class ApplicationContextMembershipListener extends MembershipListenerAdapter<ApplicationContextMembershipListener>
The ApplicationContextMembershipListener class is an extension of MembershipListenerAdapter used to adapt the ConfigurableApplicationContext to handle and process membership events, and specifically MemberDepartedEvent and MemberJoinedEvent, by closing and refreshing the ConfigurableApplicationContext when the peer member departs and joins the cluster.
Since:
1.3.0
See Also:
  • Constructor Details

    • ApplicationContextMembershipListener

      public ApplicationContextMembershipListener(@NonNull org.springframework.context.ConfigurableApplicationContext applicationContext)
      Constructs a new instance of ConfigurableApplicationContext initialized with the given ConfigurableApplicationContext.
      Parameters:
      applicationContext - configured ConfigurableApplicationContext; must not be null.
      Throws:
      IllegalArgumentException - if ConfigurableApplicationContext is null.
      See Also:
      • ConfigurableApplicationContext
  • Method Details