Class ResourceType.SharedResource<T extends ResourceType<?>>

java.lang.Object
org.ehcache.config.ResourceType.SharedResource<T>
All Implemented Interfaces:
ResourceType<ResourcePool>
Enclosing interface:
ResourceType<T extends ResourcePool>

public static class ResourceType.SharedResource<T extends ResourceType<?>> extends Object implements ResourceType<ResourcePool>
  • Constructor Details

    • SharedResource

      public SharedResource(T delegate)
  • Method Details

    • getResourcePoolClass

      public Class<ResourcePool> getResourcePoolClass()
      Description copied from interface: ResourceType
      Gets the ResourcePool type associated with this ResourceType.
      Specified by:
      getResourcePoolClass in interface ResourceType<T extends ResourceType<?>>
      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<T extends ResourceType<?>>
      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<T extends ResourceType<?>>
      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<T extends ResourceType<?>>
      Returns:
      the resource tier height
    • getResourceType

      public ResourceType<?> getResourceType()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object