Class SplitBrainProtectionEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class SplitBrainProtectionEvent
    extends java.util.EventObject
    An Event that is send when a SplitBrainProtection changes.

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

    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • 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 happened
      int getThreshold()
      Returns the predefined split brain protection threshold
      boolean isPresent()
      Returns the presence of the split brain protection
      java.lang.String toString()  
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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&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 java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject