Enum Class CacheDeserializedValues

java.lang.Object
java.lang.Enum<CacheDeserializedValues>
com.hazelcast.config.CacheDeserializedValues
All Implemented Interfaces:
Serializable, Comparable<CacheDeserializedValues>, Constable

public enum CacheDeserializedValues extends Enum<CacheDeserializedValues>
Control caching of de-serialized values. Caching makes query evaluation faster but it costs memory. To maintain reusability, cached values are used by read-only operations only and they are never passed to user-code where they could be accidentally mutated. Users will always get a fresh object, which they are free to mutate. It does not have any effect when Portable serialization or InMemoryFormat.OBJECT format is used.
Since:
3.6
  • Enum Constant Details

  • Method Details

    • values

      public static CacheDeserializedValues[] 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 CacheDeserializedValues 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
    • parseString

      public static CacheDeserializedValues parseString(String string)
      Create instance from String
      Parameters:
      string - the string value to parse
      Returns:
      instance of CacheDeserializedValues
      Throws:
      IllegalArgumentException - when unknown value is passed