Package org.opencms.configuration
Class CmsStoredContentInfoCacheConfiguration
java.lang.Object
org.opencms.configuration.CmsStoredContentInfoCacheConfiguration
Configuration for the stored content info cache.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default cache size.static final longThe default time to live in seconds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the factory class name.intgetSize()Returns the cache size.longgetTtl()Returns the time to live in seconds.voidinitialize(String factoryClass, String enabled, String size, String ttl) Initializes the configuration.booleanReturns if the cache is enabled.voidsetFactoryClass(String factoryClass) Sets the factory class name.
-
Field Details
-
DEFAULT_SIZE
The default cache size.- See Also:
-
DEFAULT_TTL
The default time to live in seconds.- See Also:
-
-
Constructor Details
-
CmsStoredContentInfoCacheConfiguration
-
-
Method Details
-
getFactoryClass
Returns the factory class name.- Returns:
- the factory class name
-
getSize
Returns the cache size.- Returns:
- the cache size
-
getTtl
Returns the time to live in seconds.- Returns:
- the time to live in seconds
-
initialize
Initializes the configuration.- Parameters:
factoryClass- the factory classenabled- if the cache is enabledsize- the maximum number of cached entriesttl- the time to live in seconds
-
isEnabled
Returns if the cache is enabled.- Returns:
trueif the cache is enabled
-
setFactoryClass
Sets the factory class name.- Parameters:
factoryClass- the factory class name
-