Enum Class ResourceType.Core

java.lang.Object
java.lang.Enum<ResourceType.Core>
org.ehcache.config.ResourceType.Core
All Implemented Interfaces:
Serializable, Comparable<ResourceType.Core>, Constable, ResourceType<SizedResourcePool>
Enclosing interface:
ResourceType<T extends ResourcePool>

public static enum ResourceType.Core extends Enum<ResourceType.Core> implements ResourceType<SizedResourcePool>
An enumeration of core ResourceTypes in Ehcache.
  • Enum Constant Details

  • Method Details

    • values

      public static ResourceType.Core[] 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 ResourceType.Core 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
    • getResourcePoolClass

      public Class<SizedResourcePool> getResourcePoolClass()
      Description copied from interface: ResourceType
      Gets the ResourcePool type associated with this ResourceType.
      Specified by:
      getResourcePoolClass in interface ResourceType<SizedResourcePool>
      Returns:
      the ResourcePool type associated with this type
    • isPersistable

      public boolean isPersistable()
      Description copied from interface: ResourceType
      Indicates whether this ResourceType supports persistence.

      Persistence in this context means that a ResourcePool of this ResourceType can be configured so that data stored in it will survive a JVM restart.

      Specified by:
      isPersistable in interface ResourceType<SizedResourcePool>
      Returns:
      true if it supports persistence, false otherwise
    • requiresSerialization

      public boolean requiresSerialization()
      Description copied from interface: ResourceType
      Indicates whether this ResourceType requires serialization support.
      Specified by:
      requiresSerialization in interface ResourceType<SizedResourcePool>
      Returns:
      true if serializers are required, false otherwise
    • getTierHeight

      public int getTierHeight()
      Description copied from interface: ResourceType
      Indicates the level this resource sits in the tiering system.

      Higher means resource is faster and less abundant, lower means resource is slower but potentially larger.

      Specified by:
      getTierHeight in interface ResourceType<SizedResourcePool>
      Returns:
      the resource tier height
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ResourceType.Core>