T - associated ResourcePool typepublic interface ResourceType<T extends ResourcePool>
ResourcePool| Modifier and Type | Interface and Description |
|---|---|
static class |
ResourceType.Core
An enumeration of core
ResourceTypes in Ehcache. |
| Modifier and Type | Method and Description |
|---|---|
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. |
java.lang.Class<T> getResourcePoolClass()
ResourcePool type associated with this ResourceType.ResourcePool type associated with this typeboolean isPersistable()
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.
true if it supports persistence, false otherwiseboolean requiresSerialization()
ResourceType requires serialization
support.true if serializers are required, false otherwiseint getTierHeight()
Higher means resource is faster and less abundant, lower means resource is slower but potentially larger.