public enum ConfigurationCacheReferenceType extends Enum<ConfigurationCacheReferenceType>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static ConfigurationCacheReferenceType |
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 ConfigurationCacheReferenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigurationCacheReferenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigurationCacheReferenceType HARD
Does not allow garbage collection to remove cache entries.
public static final ConfigurationCacheReferenceType SOFT
Allows garbage collection to remove cache entries only after all weak references have been collected.
public static final ConfigurationCacheReferenceType WEAK
Allows garbage collection to remove cache entries.
public static ConfigurationCacheReferenceType[] values()
for (ConfigurationCacheReferenceType c : ConfigurationCacheReferenceType.values()) System.out.println(c);
public static ConfigurationCacheReferenceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ConfigurationCacheReferenceType getDefault()