com.hazelcast.spi

## Class MembershipServiceEvent

- java.lang.Object
- - java.util.EventObject
  - - com.hazelcast.core.MembershipEvent
    - - com.hazelcast.spi.MembershipServiceEvent

- All Implemented Interfaces:
    Serializable

      public class MembershipServiceEvent
      extends MembershipEvent

  Membership event fired when a new member is added to the cluster and/or when a member leaves the cluster.
  See Also:
    `MembershipAwareService`, Serialized Form

- - ### Field Summary

    - ### Fields inherited from class com.hazelcast.core.MembershipEvent

      `MEMBER_ADDED, MEMBER_ATTRIBUTE_CHANGED, MEMBER_REMOVED`

    - ### Fields inherited from class java.util.EventObject

      `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MembershipServiceEvent(MembershipEvent e)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `MemberImpl` | `getMember()` Returns the removed or added member.

    - ### Methods inherited from class com.hazelcast.core.MembershipEvent

      `getCluster, getEventType, getMembers, toString`

    - ### Methods inherited from class java.util.EventObject

      `getSource`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### MembershipServiceEvent

          public MembershipServiceEvent(MembershipEvent e)

  - ### Method Detail

    - #### getMember

          public MemberImpl getMember()

      Returns the removed or added member.
      Overrides:
        `getMember` in class `MembershipEvent`
      Returns:
        member which is removed/added

Copyright © 2019. All rights reserved.