com.hazelcast.quorum
Class QuorumEvent
java.lang.Object
java.util.EventObject
com.hazelcast.quorum.QuorumEvent
- All Implemented Interfaces:
- Serializable
public class QuorumEvent
- extends EventObject
An Event that is send when a Quorum
changes.
Hold member list, quorum threshold and the quorum result.
- See Also:
- Serialized Form
QuorumEvent
public QuorumEvent(Object source,
int threshold,
Collection<Member> currentMembers,
boolean presence)
getThreshold
public int getThreshold()
- Returns the predefined quorum threshold
- Returns:
- int threshold
getCurrentMembers
public Collection<Member> getCurrentMembers()
- Returns the snapshot of member list at the time quorum happened
- Returns:
- Collection collection of members
isPresent
public boolean isPresent()
- Returns the presence of the quorum
- Returns:
- boolean presence of the quorum
toString
public String toString()
- Overrides:
toString
in class EventObject
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.