Class SplitBrainProtectionEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.hazelcast.splitbrainprotection.SplitBrainProtectionEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class SplitBrainProtectionEvent extends java.util.EventObject
An Event that is send when aSplitBrainProtection
changes.Hold member list, split brain protection threshold and the split brain protection result.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SplitBrainProtectionEvent(java.lang.Object source, int threshold, java.util.Collection<Member> currentMembers, boolean presence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.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 protectionjava.lang.String
toString()
-
-
-
Constructor Detail
-
SplitBrainProtectionEvent
public SplitBrainProtectionEvent(java.lang.Object source, int threshold, java.util.Collection<Member> currentMembers, boolean presence)
-
-
Method Detail
-
getThreshold
public int getThreshold()
Returns the predefined split brain protection threshold- Returns:
- int threshold
-
getCurrentMembers
public java.util.Collection<Member> 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
public java.lang.String toString()
- Overrides:
toString
in classjava.util.EventObject
-
-