com.hazelcast.quorum

## Class QuorumEvent

- java.lang.Object
- - java.util.EventObject
  - - com.hazelcast.quorum.QuorumEvent

- All Implemented Interfaces:
    Serializable

      public class QuorumEvent
      extends EventObject

  An Event that is send when a `Quorum` changes.

  Hold member list, quorum threshold and the quorum result.
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class java.util.EventObject

      `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `QuorumEvent(Object source, int threshold, Collection<Member> currentMembers, boolean presence)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Collection<Member>` | `getCurrentMembers()` Returns the snapshot of member list at the time quorum happened
    `int` | `getThreshold()` Returns the predefined quorum threshold
    `boolean` | `isPresent()` Returns the presence of the quorum
    `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

    - #### QuorumEvent

          public QuorumEvent(Object source,
                             int threshold,
                             Collection<Member> currentMembers,
                             boolean presence)

  - ### Method Detail

    - #### getThreshold

          public int getThreshold()

      Returns the predefined quorum threshold
      Returns:
        int threshold

    - #### getCurrentMembers

          public Collection<Member> getCurrentMembers()

      Returns the snapshot of member list at the time quorum happened
      Returns:
        Collection collection of members

    - #### isPresent

          public boolean isPresent()

      Returns the presence of the quorum
      Returns:
        boolean presence of the quorum

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `EventObject`

Copyright © 2020. All rights reserved.