Enum Class StorageType

java.lang.Object
java.lang.Enum<StorageType>
org.infinispan.configuration.cache.StorageType
All Implemented Interfaces:
Serializable, Comparable<StorageType>, Constable

public enum StorageType extends Enum<StorageType>
Enumeration defining the various storage types for the data container.
Since:
9.0
Author:
wburns
  • Enum Constant Details

    • HEAP

      public static final StorageType HEAP
      Objects are stored on heap. Equality is defined by the equals of the implementation class. If the configured MediaType causes the storage to be byte[], then equality is defined by these byte[] instances.
    • OFF_HEAP

      public static final StorageType OFF_HEAP
      Entries are stored in internal memory off the normal Java heap. This mode has equality defined by the byte[] created from the serialized form of the provided object.
  • Method Details

    • values

      public static StorageType[] 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 StorageType 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
    • getElement

      public Element getElement()
    • forElement

      public static StorageType forElement(String element)
    • canStoreReferences

      public boolean canStoreReferences()