Class SplitBrainProtectionEvent
java.lang.Object
java.util.EventObject
com.hazelcast.splitbrainprotection.SplitBrainProtectionEvent
- All Implemented Interfaces:
Serializable
An Event that is sent when a
SplitBrainProtection
changes.
Hold member list, split brain protection threshold and the split brain protection result.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionSplitBrainProtectionEvent
(Object source, int threshold, Collection<Member> currentMembers, boolean presence) -
Method Summary
Modifier and TypeMethodDescriptionReturns the snapshot of member list at the time split brain protection happenedint
Returns the predefined split brain protection thresholdboolean
Returns the presence of the split brain protectiontoString()
Methods inherited from class java.util.EventObject
getSource
-
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
-