Enum TxnServiceVerb

java.lang.Object
java.lang.Enum<TxnServiceVerb>
io.vertx.ext.consul.TxnServiceVerb
All Implemented Interfaces:
Serializable, Comparable<TxnServiceVerb>

public enum TxnServiceVerb extends Enum<TxnServiceVerb>
Holds the type of Service operation in transaction
  • Enum Constant Details

    • SET

      public static final TxnServiceVerb SET
      Sets the service to the given state
    • CAS

      public static final TxnServiceVerb CAS
      Sets, but with CAS semantics using the given ModifyIndex
    • GET

      public static final TxnServiceVerb GET
      Get the service, fails if it does not exist
    • DELETE

      public static final TxnServiceVerb DELETE
      Delete the service
    • DELETE_CAS

      public static final TxnServiceVerb DELETE_CAS
      Delete, but with CAS semantics
  • Method Details

    • values

      public static TxnServiceVerb[] 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 TxnServiceVerb 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
    • ofVerb

      public static TxnServiceVerb ofVerb(String verb)
    • getVerb

      public String getVerb()