com.hazelcast.core
Class InitialMembershipEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.hazelcast.core.InitialMembershipEvent
All Implemented Interfaces:
Serializable

public class InitialMembershipEvent
extends EventObject

A event that is send 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
InitialMembershipEvent(Cluster cluster, Set<Member> members)
           
 
Method Summary
 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 © 2015 Hazelcast, Inc.. All Rights Reserved.