org.ehcache.config
Interface ResourceType<T extends ResourcePool>

Type Parameters:
T - associated ResourcePool type
All Known Implementing Classes:
ResourceType.Core

public interface ResourceType<T extends ResourcePool>

A resource type.

See Also:
ResourcePool

Nested Class Summary
static class ResourceType.Core
          An enumeration of core ResourceTypes in Ehcache.
 
Method Summary
 java.lang.Class<T> getResourcePoolClass()
          Gets the ResourcePool type associated with this ResourceType.
 int getTierHeight()
          Indicates the level this resource sits in the tiering system.
 boolean isPersistable()
          Indicates whether this ResourceType supports persistence.
 boolean requiresSerialization()
          Indicates whether this ResourceType requires serialization support.
 

Method Detail

getResourcePoolClass

java.lang.Class<T> getResourcePoolClass()
Gets the ResourcePool type associated with this ResourceType.

Returns:
the ResourcePool type associated with this type

isPersistable

boolean isPersistable()
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.

Returns:
true if it supports persistence, false otherwise

requiresSerialization

boolean requiresSerialization()
Indicates whether this ResourceType requires serialization support.

Returns:
true if serializers are required, false otherwise

getTierHeight

int getTierHeight()
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.

Returns:
the resource tier height