Interface FifoEntryCacheCfgClient
- All Superinterfaces:
ConfigurationClient
,EntryCacheCfgClient
FIFO Entry Caches use a FIFO queue to keep track of the cached entries.
-
Method Summary
Modifier and TypeMethodDescriptionManagedObjectDefinition<? extends FifoEntryCacheCfgClient,
? extends FifoEntryCacheCfg> Get the configuration definition associated with this FIFO Entry Cache.Gets the "exclude-filter" property.Gets the "include-filter" property.Gets the "java-class" property.Gets the "lock-timeout" property.Gets the "max-entries" property.Gets the "max-memory-percent" property.void
setExcludeFilter
(Collection<ValueOrExpression<String>> values) Sets the "exclude-filter" property.void
setIncludeFilter
(Collection<ValueOrExpression<String>> values) Sets the "include-filter" property.void
setJavaClass
(ValueOrExpression<String> value) Sets the "java-class" property.void
setLockTimeout
(ValueOrExpression<Long> value) Sets the "lock-timeout" property.void
setMaxEntries
(ValueOrExpression<Integer> value) Sets the "max-entries" property.void
Sets the "max-memory-percent" property.Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
Methods inherited from interface org.forgerock.opendj.server.config.client.EntryCacheCfgClient
getCacheLevel, isEnabled, setCacheLevel, setEnabled
-
Method Details
-
definition
ManagedObjectDefinition<? extends FifoEntryCacheCfgClient,? extends FifoEntryCacheCfg> definition()Get the configuration definition associated with this FIFO Entry Cache.- Specified by:
definition
in interfaceConfigurationClient
- Specified by:
definition
in interfaceEntryCacheCfgClient
- Returns:
- Returns the configuration definition associated with this FIFO Entry Cache.
-
getExcludeFilter
SortedSet<ValueOrExpression<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 the values of the "exclude-filter" property.
-
setExcludeFilter
Sets the "exclude-filter" property.The set of filters that define the entries that should be excluded from the cache.
- Parameters:
values
- The values of the "exclude-filter" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getIncludeFilter
SortedSet<ValueOrExpression<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 the values of the "include-filter" property.
-
setIncludeFilter
Sets the "include-filter" property.The set of filters that define the entries that should be included in the cache.
- Parameters:
values
- The values of the "include-filter" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getJavaClass
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the FIFO Entry Cache implementation.
Default value:
org.opends.server.extensions.FIFOEntryCache
- Specified by:
getJavaClass
in interfaceEntryCacheCfgClient
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the FIFO Entry Cache implementation.
- Specified by:
setJavaClass
in interfaceEntryCacheCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
getLockTimeout
ValueOrExpression<Long> getLockTimeout()Gets the "lock-timeout" property.Specifies the length of time to wait while attempting to acquire a read or write lock.
Default value:
2000.0ms
- Returns:
- Returns the value of the "lock-timeout" property.
-
setLockTimeout
Sets the "lock-timeout" property.Specifies the length of time to wait while attempting to acquire a read or write lock.
- Parameters:
value
- The value of the "lock-timeout" property.- Throws:
PropertyException
- If the new value is invalid.
-
getMaxEntries
ValueOrExpression<Integer> getMaxEntries()Gets the "max-entries" property.Specifies the maximum number of entries that we will allow in the cache.
Default value:
2147483647
- Returns:
- Returns the value of the "max-entries" property.
-
setMaxEntries
Sets the "max-entries" property.Specifies the maximum number of entries that we will allow in the cache.
- Parameters:
value
- The value of the "max-entries" property.- Throws:
PropertyException
- If the new value is invalid.
-
getMaxMemoryPercent
ValueOrExpression<Integer> getMaxMemoryPercent()Gets the "max-memory-percent" property.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.
Default value:
90
- Returns:
- Returns the value of the "max-memory-percent" property.
-
setMaxMemoryPercent
Sets the "max-memory-percent" property.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.
- Parameters:
value
- The value of the "max-memory-percent" property.- Throws:
PropertyException
- If the new value is invalid.
-