Class SplitBrainProtectionEvent
java.lang.Object
java.util.EventObject
com.hazelcast.splitbrainprotection.SplitBrainProtectionEvent
- All Implemented Interfaces:
- Serializable
An Event that is send when a 
SplitBrainProtection changes.
 Hold member list, split brain protection threshold and the split brain protection result.
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionSplitBrainProtectionEvent(Object source, int threshold, Collection<Member> currentMembers, boolean presence) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the snapshot of member list at the time split brain protection happenedintReturns the predefined split brain protection thresholdbooleanReturns the presence of the split brain protectiontoString()Methods inherited from class java.util.EventObjectgetSource
- 
Constructor Details- 
SplitBrainProtectionEventpublic SplitBrainProtectionEvent(Object source, int threshold, Collection<Member> currentMembers, boolean presence) 
 
- 
- 
Method Details- 
getThresholdpublic int getThreshold()Returns the predefined split brain protection threshold- Returns:
- int threshold
 
- 
getCurrentMembersReturns the snapshot of member list at the time split brain protection happened- Returns:
- Collection<Member>collection of members
 
- 
isPresentpublic boolean isPresent()Returns the presence of the split brain protection- Returns:
- boolean presence of the split brain protection
 
- 
toString- Overrides:
- toStringin class- EventObject
 
 
-