com.hazelcast.core

## Class InitialMembershipEvent

- java.lang.Object
- - java.util.EventObject
  - - com.hazelcast.core.InitialMembershipEvent

- All Implemented Interfaces:
    Serializable

      public class InitialMembershipEvent
      extends EventObject

  An event that is sent when a `InitialMembershipListener` registers itself on a `Cluster`. For more information, see the `InitialMembershipListener`.
  Author:
    Peter Veentjer
  See Also:
    `InitialMembershipListener`, `MembershipListener`, `MembershipEvent`, Serialized Form

- - ### Field Summary

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

      `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `InitialMembershipEvent(Cluster cluster, Set<Member> members)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Cluster` | `getCluster()` Returns the cluster of the event.
    `Set<Member>` | `getMembers()` Returns an immutable set of ordered members at the moment this `InitialMembershipListener` is registered.
    `String` | `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

    - #### InitialMembershipEvent

          public InitialMembershipEvent(Cluster cluster,
                                        Set<Member> members)

  - ### Method Detail

    - #### getMembers

          public Set<Member> getMembers()

      Returns an immutable set of ordered members at the moment this `InitialMembershipListener` is registered. See `Cluster.getMembers()` for more information.
      Returns:
        an immutable set of ordered members.

    - #### getCluster

          public Cluster getCluster()

      Returns the cluster of the event.
      Returns:
        the cluster of the event.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `EventObject`

Copyright © 2020. All rights reserved.