|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ConfigurationDBRef.CacheReferenceType>
net.esper.client.ConfigurationDBRef.CacheReferenceType
public static enum ConfigurationDBRef.CacheReferenceType
Enum indicating what kind of references are used to store the cache map's keys and values.
Enum Constant Summary | |
---|---|
HARD
Constant indicating that hard references should be used. |
|
SOFT
Constant indicating that soft references should be used. |
|
WEAK
Constant indicating that weak references should be used. |
Method Summary | |
---|---|
static ConfigurationDBRef.CacheReferenceType |
getDefault()
The default policy is set to WEAK to reduce the chance that out-of-memory errors occur as caches fill, and stay backwards compatible with prior Esper releases. |
static ConfigurationDBRef.CacheReferenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ConfigurationDBRef.CacheReferenceType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ConfigurationDBRef.CacheReferenceType HARD
Does not allow garbage collection to remove cache entries.
public static final ConfigurationDBRef.CacheReferenceType SOFT
Allows garbage collection to remove cache entries only after all weak references have been collected.
public static final ConfigurationDBRef.CacheReferenceType WEAK
Allows garbage collection to remove cache entries.
Method Detail |
---|
public static final ConfigurationDBRef.CacheReferenceType[] values()
for(ConfigurationDBRef.CacheReferenceType c : ConfigurationDBRef.CacheReferenceType.values()) System.out.println(c);
public static ConfigurationDBRef.CacheReferenceType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static ConfigurationDBRef.CacheReferenceType getDefault()
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |