Enum ConsensusStatus

java.lang.Object
java.lang.Enum<ConsensusStatus>
com.exonum.client.response.ConsensusStatus
All Implemented Interfaces:
Serializable, Comparable<ConsensusStatus>, java.lang.constant.Constable

public enum ConsensusStatus
extends Enum<ConsensusStatus>
Consensus status of a particular node.
  • Enum Constant Details

    • ACTIVE

      public static final ConsensusStatus ACTIVE
      Shows that consensus is active, i.e., it is enabled and the node has enough connected peers.
    • ENABLED

      public static final ConsensusStatus ENABLED
      Shows that consensus is enabled on the node.
    • DISABLED

      public static final ConsensusStatus DISABLED
      Shows that consensus is disabled on the node.
  • Method Details

    • values

      public static ConsensusStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ConsensusStatus valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null