Enum Param.PersistenceMode

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

@Experimental public static enum Param.PersistenceMode extends Enum<Param.PersistenceMode> implements Param<Param.PersistenceMode>
When a persistence store is attached to a cache, by default all write operations, regardless of whether they are inserts, updates or removes, are persisted to the store. Using SKIP, the write operations can skip the persistence store modification, applying the effects of the write operation only in the in-memory contents of the caches in the cluster.
Since:
8.0
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static Param.PersistenceMode[] 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 Param.PersistenceMode 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
    • 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.PersistenceMode>
    • get

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

      public static Param.PersistenceMode defaultValue()
      Provides default persistence mode.
    • valueOf

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