Enum Class Utils.TimeOutReason

java.lang.Object
java.lang.Enum<Utils.TimeOutReason>
it.unitn.disi.ds1.qtop.Utils.TimeOutReason
All Implemented Interfaces:
Serializable, Comparable<Utils.TimeOutReason>, Constable
Enclosing class:
Utils

public static enum Utils.TimeOutReason extends Enum<Utils.TimeOutReason>
Enum to represent all the possible reasons for a timeout.
  • Enum Constant Details

    • HEARTBEAT

      public static final Utils.TimeOutReason HEARTBEAT
      Timeout for the heartbeat.
    • VOTE

      public static final Utils.TimeOutReason VOTE
      Timeout for a vote request.
    • WRITE

      public static final Utils.TimeOutReason WRITE
      Timeout for a write request.
    • ELECTION

      public static final Utils.TimeOutReason ELECTION
      Timeout for an election message.
    • ELECTION_GLOBAL

      public static final Utils.TimeOutReason ELECTION_GLOBAL
      Timeout to elect a leader.
    • CRASH_RESPONSE

      public static final Utils.TimeOutReason CRASH_RESPONSE
      Timeout for a CrashRequest message.
    • CLIENT_REQUEST

      public static final Utils.TimeOutReason CLIENT_REQUEST
      Timeout to make a request via a Client.
  • Method Details

    • values

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

      public static Utils.TimeOutReason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null