Interface SoftReferenceEntryCacheCfg
-
- All Superinterfaces:
Configuration
,EntryCacheCfg
public interface SoftReferenceEntryCacheCfg extends EntryCacheCfg
A server-side interface for querying Soft Reference Entry Cache settings.The Soft Reference Entry Cache is a directory server entry cache implementation that uses soft references to manage objects to allow them to be freed if the JVM is running low on memory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addSoftReferenceChangeListener(ConfigurationChangeListener<SoftReferenceEntryCacheCfg> listener)
Register to be notified when this Soft Reference Entry Cache is changed.Class<? extends SoftReferenceEntryCacheCfg>
configurationClass()
Gets the configuration class associated with this Soft Reference 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.void
removeSoftReferenceChangeListener(ConfigurationChangeListener<SoftReferenceEntryCacheCfg> listener)
Deregister an existing Soft Reference Entry Cache configuration change listener.-
Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, name
-
Methods inherited from interface org.forgerock.opendj.server.config.server.EntryCacheCfg
addChangeListener, getCacheLevel, isEnabled, removeChangeListener
-
-
-
-
Method Detail
-
configurationClass
Class<? extends SoftReferenceEntryCacheCfg> configurationClass()
Gets the configuration class associated with this Soft Reference Entry Cache.- Specified by:
configurationClass
in interfaceConfiguration
- Specified by:
configurationClass
in interfaceEntryCacheCfg
- Returns:
- Returns the configuration class associated with this Soft Reference Entry Cache.
-
addSoftReferenceChangeListener
void addSoftReferenceChangeListener(ConfigurationChangeListener<SoftReferenceEntryCacheCfg> listener)
Register to be notified when this Soft Reference Entry Cache is changed.- Parameters:
listener
- The Soft Reference Entry Cache configuration change listener.
-
removeSoftReferenceChangeListener
void removeSoftReferenceChangeListener(ConfigurationChangeListener<SoftReferenceEntryCacheCfg> listener)
Deregister an existing Soft Reference Entry Cache configuration change listener.- Parameters:
listener
- The Soft Reference Entry Cache configuration change listener.
-
getExcludeFilter
SortedSet<String> getExcludeFilter()
Gets the "exclude-filter" property.The set of filters that define the entries that should be excluded from the cache.
Default value is undefined
- Returns:
- Returns an unmodifiable set containing the values of the "exclude-filter" property.
-
getIncludeFilter
SortedSet<String> getIncludeFilter()
Gets the "include-filter" property.The set of filters that define the entries that should be included in the cache.
Default value is undefined
- Returns:
- Returns an unmodifiable set containing the values of the "include-filter" property.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the Soft Reference Entry Cache implementation.
Default value:
org.opends.server.extensions.SoftReferenceEntryCache
- Specified by:
getJavaClass
in interfaceEntryCacheCfg
- Returns:
- Returns the value of the "java-class" property.
-
getLockTimeout
long getLockTimeout()
Gets the "lock-timeout" property.Specifies the length of time in milliseconds to wait while attempting to acquire a read or write lock.
Default value:
3000ms
- Returns:
- Returns the value of the "lock-timeout" property.
-
-