Class SplitBrainProtectionEvent
java.lang.Object
java.util.EventObject
com.hazelcast.splitbrainprotection.SplitBrainProtectionEvent
- All Implemented Interfaces:
Serializable
public class SplitBrainProtectionEvent extends EventObject
An Event that is send when a
SplitBrainProtection
changes.
Hold member list, split brain protection threshold and the split brain protection result.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SplitBrainProtectionEvent(Object source, int threshold, Collection<Member> currentMembers, boolean presence)
-
Method Summary
Modifier and Type Method Description Collection<Member>
getCurrentMembers()
Returns the snapshot of member list at the time split brain protection happenedint
getThreshold()
Returns the predefined split brain protection thresholdboolean
isPresent()
Returns the presence of the split brain protectionString
toString()
-
Constructor Details
-
SplitBrainProtectionEvent
public SplitBrainProtectionEvent(Object source, int threshold, Collection<Member> currentMembers, boolean presence)
-
-
Method Details
-
getThreshold
public int getThreshold()Returns the predefined split brain protection threshold- Returns:
- int threshold
-
getCurrentMembers
Returns the snapshot of member list at the time split brain protection happened- Returns:
Collection<Member>
collection of members
-
isPresent
public boolean isPresent()Returns the presence of the split brain protection- Returns:
- boolean presence of the split brain protection
-
toString
- Overrides:
toString
in classEventObject
-