public class SplitBrainProtectionEvent extends EventObject
SplitBrainProtection
changes.
Hold member list, split brain protection threshold and the split brain protection result.
source
Constructor and Description |
---|
SplitBrainProtectionEvent(Object source,
int threshold,
Collection<Member> currentMembers,
boolean presence) |
Modifier and Type | Method and Description |
---|---|
Collection<Member> |
getCurrentMembers()
Returns the snapshot of member list at the time split brain protection happened
|
int |
getThreshold()
Returns the predefined split brain protection threshold
|
boolean |
isPresent()
Returns the presence of the split brain protection
|
String |
toString() |
getSource
public SplitBrainProtectionEvent(Object source, int threshold, Collection<Member> currentMembers, boolean presence)
public int getThreshold()
public Collection<Member> getCurrentMembers()
Collection<Member>
collection of memberspublic boolean isPresent()
public String toString()
toString
in class EventObject
Copyright © 2024 Hazelcast, Inc.. All rights reserved.