MembershipListener (Apache Geode 1.6.0)
Date: 2018-04-23

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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and 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 Detail

    - #### memberJoined

          void memberJoined(MembershipEvent event)

      Invoked when a member has joined the distributed system

    - #### 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.

    - #### 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.