Enum Class ProposalStore.Outcome

java.lang.Object
java.lang.Enum<ProposalStore.Outcome>
com.eqixiac.equinix.mcp.server.broker.ProposalStore.Outcome
All Implemented Interfaces:
Serializable, Comparable<ProposalStore.Outcome>, Constable
Enclosing class:
ProposalStore

public static enum ProposalStore.Outcome extends Enum<ProposalStore.Outcome>
How a ProposalStore.consume(String) attempt resolved.
  • Enum Constant Details

    • CONSUMED

      public static final ProposalStore.Outcome CONSUMED
      The token was live: it is now consumed and the pending change is returned.
    • EXPIRED

      public static final ProposalStore.Outcome EXPIRED
      The token existed but its TTL elapsed before any confirm attempt.
    • REPLAYED

      public static final ProposalStore.Outcome REPLAYED
      The token was already consumed by an earlier confirm attempt.
    • EVICTED

      public static final ProposalStore.Outcome EVICTED
      The proposal was evicted unconfirmed because the store reached capacity.
    • UNKNOWN

      public static final ProposalStore.Outcome UNKNOWN
      The token was never minted by this process (or is long forgotten).
  • Method Details

    • values

      public static ProposalStore.Outcome[] 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 ProposalStore.Outcome 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