Interface EntryCacheCfgClient
-
- All Superinterfaces:
ConfigurationClient
- All Known Subinterfaces:
FIFOEntryCacheCfgClient,SoftReferenceEntryCacheCfgClient
public interface EntryCacheCfgClient extends ConfigurationClient
A client-side interface for reading and modifying Entry Cache settings.Entry Caches are responsible for caching entries which are likely to be accessed by client applications in order to improve OpenDJ directory server performance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends EntryCacheCfgClient,? extends EntryCacheCfg>definition()Get the configuration definition associated with this Entry Cache.IntegergetCacheLevel()Gets the "cache-level" property.StringgetJavaClass()Gets the "java-class" property.BooleanisEnabled()Gets the "enabled" property.voidsetCacheLevel(int value)Sets the "cache-level" property.voidsetEnabled(boolean value)Sets the "enabled" property.voidsetJavaClass(String value)Sets the "java-class" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends EntryCacheCfgClient,? extends EntryCacheCfg> definition()
Get the configuration definition associated with this Entry Cache.- Specified by:
definitionin interfaceConfigurationClient- Returns:
- Returns the configuration definition associated with this Entry Cache.
-
getCacheLevel
Integer getCacheLevel()
Gets the "cache-level" property.Specifies the cache level in the cache order if more than one instance of the cache is configured.
- Returns:
- Returns the value of the "cache-level" property.
-
setCacheLevel
void setCacheLevel(int value) throws PropertyExceptionSets the "cache-level" property.Specifies the cache level in the cache order if more than one instance of the cache is configured.
- Parameters:
value- The value of the "cache-level" property.- Throws:
PropertyException- If the new value is invalid.
-
isEnabled
Boolean isEnabled()
Gets the "enabled" property.Indicates whether the Entry Cache is enabled.
- Returns:
- Returns the value of the "enabled" property.
-
setEnabled
void setEnabled(boolean value) throws PropertyExceptionSets the "enabled" property.Indicates whether the Entry Cache is enabled.
- Parameters:
value- The value of the "enabled" property.- Throws:
PropertyException- If the new value is invalid.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the Entry Cache implementation.
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
void setJavaClass(String value) throws PropertyException
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the Entry Cache implementation.
- Parameters:
value- The value of the "java-class" property.- Throws:
PropertyException- If the new value is invalid.
-
-