com.hazelcast.spi

## Interface MembershipAwareService

- All Known Implementing Classes:
    CRDTReplicationMigrationService, LockServiceImpl, SemaphoreService

      public interface MembershipAwareService

  An interface that can be implemented by a SPI service that needs to be notified members joining and leaving the cluster.
  Author:
    mdogan 9/5/12

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `memberAdded(MembershipServiceEvent event)` Invoked when a new member is added to the cluster.
    `void` | `memberAttributeChanged(MemberAttributeServiceEvent event)` Invoked when a member attribute is changed.
    `void` | `memberRemoved(MembershipServiceEvent event)` Invoked when an existing member leaves the cluster.

- - ### Method Detail

    - #### memberAdded

          void memberAdded(MembershipServiceEvent event)

      Invoked when a new member is added to the cluster. Should be non-blocking.
      Parameters:
        `event` - the event for a new member added to the cluster

    - #### memberRemoved

          void memberRemoved(MembershipServiceEvent event)

      Invoked when an existing member leaves the cluster. Should be non-blocking.
      Parameters:
        `event` - the event for an existing member leaving the cluster

    - #### memberAttributeChanged

          void memberAttributeChanged(MemberAttributeServiceEvent event)

      Invoked when a member attribute is changed.
      Parameters:
        `event` - the event for a member attribute being changed

Copyright © 2018. All rights reserved.