Enum Param.PersistenceMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Param.PersistenceMode>, Param<Param.PersistenceMode>
    Enclosing interface:
    Param<P>

    public static enum Param.PersistenceMode
    extends java.lang.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
    • Method Detail

      • values

        public static Param.PersistenceMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Param.PersistenceMode c : Param.PersistenceMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Param.PersistenceMode valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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>
      • 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null