MembershipListener (Apache Geode 2.0.2)
Description: declaration: package: org.apache.geode.management.membership, interface: MembershipListener

Package org.apache.geode.management.membership

# Interface MembershipListener

All Known Implementing Classes:
  `UniversalMembershipListenerAdapter`

public interface MembershipListener
A listener whose callback methods are invoked when members join or leave the GemFire distributed system.

Since:
  GemFire 8.0
See Also:
  - `ManagementService.addMembershipListener(org.apache.geode.management.membership.MembershipListener)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `memberCrashed(MembershipEvent event)`
  Invoked when a member has unexpectedly left the distributed system.
  `void`
  `memberJoined(MembershipEvent event)`
  Invoked when a member has joined the distributed system
  `void`
  `memberLeft(MembershipEvent event)`
  Invoked when a member has gracefully left the distributed system.

- ## Method Details

  - ### memberJoined

    void memberJoined(MembershipEvent event)
    Invoked when a member has joined the distributed system
    Parameters:
      `event` - the triggering event

  - ### memberLeft

    void memberLeft(MembershipEvent event)
    Invoked when a member has gracefully left the distributed system. This occurs when the member took action to remove itself from the distributed system.
    Parameters:
      `event` - the triggering event

  - ### memberCrashed

    void memberCrashed(MembershipEvent event)
    Invoked when a member has unexpectedly left the distributed system. This occurs when a member process terminates abnormally or is forcibly removed from the distributed system by another process, such as from failure detection, or network partition detection processing.
    Parameters:
      `event` - the triggering event