|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ResourceType.Core>
org.ehcache.config.ResourceType.Core
public static enum ResourceType.Core
An enumeration of core ResourceTypes in Ehcache.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ehcache.config.ResourceType |
|---|
ResourceType.Core |
| Enum Constant Summary | |
|---|---|
DISK
Disk: persistable, serialization required. |
|
HEAP
Heap: not persistable, serialization not required. |
|
OFFHEAP
OffHeap: not persistable, serialization required. |
|
| Method Summary | |
|---|---|
java.lang.Class<SizedResourcePool> |
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.String |
toString()
|
static ResourceType.Core |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ResourceType.Core[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ResourceType.Core HEAP
serialization not required.
public static final ResourceType.Core OFFHEAP
serialization required.
public static final ResourceType.Core DISK
serialization required.
| Method Detail |
|---|
public static ResourceType.Core[] values()
for (ResourceType.Core c : ResourceType.Core.values()) System.out.println(c);
public static ResourceType.Core valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.Class<SizedResourcePool> getResourcePoolClass()
ResourceTypeResourcePool type associated with this ResourceType.
getResourcePoolClass in interface ResourceType<SizedResourcePool>ResourcePool type associated with this typepublic boolean isPersistable()
ResourceTypeResourceType 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.
isPersistable in interface ResourceType<SizedResourcePool>true if it supports persistence, false otherwisepublic boolean requiresSerialization()
ResourceTypeResourceType requires serialization
support.
requiresSerialization in interface ResourceType<SizedResourcePool>true if serializers are required, false otherwisepublic int getTierHeight()
ResourceTypeHigher means resource is faster and less abundant, lower means resource is slower but potentially larger.
getTierHeight in interface ResourceType<SizedResourcePool>public java.lang.String toString()
toString in class java.lang.Enum<ResourceType.Core>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||