public interface FIFOEntryCacheCfg extends EntryCacheCfg
FIFO Entry Caches use a FIFO queue to keep track of the cached entries.
Modifier and Type | Method and Description |
---|---|
void |
addFIFOChangeListener(ConfigurationChangeListener<FIFOEntryCacheCfg> listener)
Register to be notified when this FIFO Entry Cache is changed.
|
Class<? extends FIFOEntryCacheCfg> |
configurationClass()
Gets the configuration class associated with this FIFO Entry Cache.
|
SortedSet<String> |
getExcludeFilter()
Gets the "exclude-filter" property.
|
SortedSet<String> |
getIncludeFilter()
Gets the "include-filter" property.
|
String |
getJavaClass()
Gets the "java-class" property.
|
long |
getLockTimeout()
Gets the "lock-timeout" property.
|
int |
getMaxEntries()
Gets the "max-entries" property.
|
int |
getMaxMemoryPercent()
Gets the "max-memory-percent" property.
|
void |
removeFIFOChangeListener(ConfigurationChangeListener<FIFOEntryCacheCfg> listener)
Deregister an existing FIFO Entry Cache configuration change listener.
|
addChangeListener, getCacheLevel, isEnabled, removeChangeListener
dn
Class<? extends FIFOEntryCacheCfg> configurationClass()
configurationClass
in interface Configuration
configurationClass
in interface EntryCacheCfg
void addFIFOChangeListener(ConfigurationChangeListener<FIFOEntryCacheCfg> listener)
listener
- The FIFO Entry Cache configuration change listener.void removeFIFOChangeListener(ConfigurationChangeListener<FIFOEntryCacheCfg> listener)
listener
- The FIFO Entry Cache configuration change listener.SortedSet<String> getExcludeFilter()
The set of filters that define the entries that should be excluded from the cache.
SortedSet<String> getIncludeFilter()
The set of filters that define the entries that should be included in the cache.
String getJavaClass()
Specifies the fully-qualified name of the Java class that provides the FIFO Entry Cache implementation.
getJavaClass
in interface EntryCacheCfg
long getLockTimeout()
Specifies the length of time to wait while attempting to acquire a read or write lock.
int getMaxEntries()
Specifies the maximum number of entries that we will allow in the cache.
int getMaxMemoryPercent()
Specifies the maximum percentage of JVM memory used by the server before the entry caches stops caching and begins purging itself.
Very low settings such as 10 or 20 (percent) can prevent this entry cache from having enough space to hold any of the entries to cache, making it appear that the server is ignoring or skipping the entry cache entirely.
Copyright 2010-2017 ForgeRock AS.