Enum Class Lock.Type

java.lang.Object
java.lang.Enum<Lock.Type>
io.quarkus.arc.Lock.Type
All Implemented Interfaces:
Serializable, Comparable<Lock.Type>, Constable
Enclosing class:
Lock

public static enum Lock.Type extends Enum<Lock.Type>
  • Enum Constant Details

    • READ

      public static final Lock.Type READ
      Acquires the read lock before the business method is invoked.
    • WRITE

      public static final Lock.Type WRITE
      Acquires the write (exclusive) lock before the business method is invoked.
    • NONE

      public static final Lock.Type NONE
      Acquires no lock.

      This could be useful if you need to override the behavior defined by a class-level interceptor binding.

  • Method Details

    • values

      public static Lock.Type[] 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 Lock.Type 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