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 sent when a SplitBrainProtection changes.

Hold member list, split brain protection threshold and the split brain protection result.

See Also:
  • 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

      public Collection<Member> getCurrentMembers()
      Returns the snapshot of member list at the time split brain protection happened
      Returns:
      Collection&lt;Member&gt; 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 String toString()
      Overrides:
      toString in class EventObject