Enum Class Param.LockingMode

java.lang.Object
java.lang.Enum<Param.LockingMode>
org.infinispan.functional.Param.LockingMode
All Implemented Interfaces:
Serializable, Comparable<Param.LockingMode>, Constable, Param<Param.LockingMode>
Enclosing interface:
Param<P>

@Experimental public static enum Param.LockingMode extends Enum<Param.LockingMode> implements Param<Param.LockingMode>
Normally the cache has to acquire locks during any write operation to guarantee its correctness. If the application is sure that no concurrent operation occurs, it is possible to increase performance by setting this param to SKIP. The result of any operation without locking is undefined under presence of concurrent writes.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static Param.LockingMode[] 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 Param.LockingMode 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
    • id

      public int id()
      Description copied from interface: Param
      A parameter's identifier. Each parameter must have a different id.

      A numeric id makes it flexible enough to be stored in collections that take up low resources, such as arrays.

      Specified by:
      id in interface Param<Param.LockingMode>
    • get

      public Param.LockingMode get()
      Description copied from interface: Param
      Parameter's value.
      Specified by:
      get in interface Param<Param.LockingMode>
    • defaultValue

      public static Param.LockingMode defaultValue()
    • valueOf

      public static Param.LockingMode valueOf(int ordinal)
      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:
      ordinal - 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