public class CmsFlexCacheConfiguration extends java.lang.Object
Constructor and Description |
---|
CmsFlexCacheConfiguration()
Empty public constructor for the digester.
|
Modifier and Type | Method and Description |
---|---|
long |
getAvgCacheBytes()
Returns the average cache bytes.
|
I_CmsJspDeviceSelector |
getDeviceSelector()
Returns the deviceSelector.
|
java.lang.String |
getDeviceSelectorConfiguration()
Returns the device selector configuration.
|
long |
getMaxCacheBytes()
Returns the maxCacheBytes.
|
int |
getMaxEntryBytes()
Returns the maxEntryBytes.
|
int |
getMaxKeys()
Returns the maxKeys.
|
void |
initialize(java.lang.String enabled,
java.lang.String offline,
java.lang.String maxCacheBytes,
java.lang.String avgCacheBytes,
java.lang.String maxEntryBytes,
java.lang.String maxKeys)
Initializes the flex cache configuration with required parameters.
|
boolean |
isCacheEnabled()
Checks if flexcache is enabled or not.
|
boolean |
isCacheOffline()
Checks the cacheOffline.
|
void |
setAvgCacheBytes(long avgCacheBytes)
Sets the avgCacheBytes.
|
void |
setCacheEnabled(boolean enabled)
Sets the enabled.
|
void |
setCacheOffline(boolean cacheOffline)
Sets the cacheOffline.
|
void |
setDeviceSelectorConfiguration(java.lang.String deviceSelector)
Sets the device selector configuration.
|
void |
setMaxCacheBytes(long maxCacheBytes)
Sets the maxCacheBytes.
|
void |
setMaxEntryBytes(int maxEntryBytes)
Sets the maxEntryBytes.
|
void |
setMaxKeys(int maxKeys)
Sets the maxKeys.
|
public CmsFlexCacheConfiguration()
public long getAvgCacheBytes()
public I_CmsJspDeviceSelector getDeviceSelector()
public java.lang.String getDeviceSelectorConfiguration()
public long getMaxCacheBytes()
public int getMaxEntryBytes()
public int getMaxKeys()
public void initialize(java.lang.String enabled, java.lang.String offline, java.lang.String maxCacheBytes, java.lang.String avgCacheBytes, java.lang.String maxEntryBytes, java.lang.String maxKeys)
enabled
- enables or disable the flexcacheoffline
- enable the flexcache for the offline projectmaxCacheBytes
- the max bytes for cacheavgCacheBytes
- the average bytes for cachemaxEntryBytes
- the max bytes for entrymaxKeys
- the max keyspublic boolean isCacheEnabled()
public boolean isCacheOffline()
public void setAvgCacheBytes(long avgCacheBytes)
avgCacheBytes
- the avgCacheBytes to setpublic void setCacheEnabled(boolean enabled)
enabled
- the enabled to setpublic void setCacheOffline(boolean cacheOffline)
cacheOffline
- the cacheOffline to setpublic void setDeviceSelectorConfiguration(java.lang.String deviceSelector)
deviceSelector
- the device selector to setpublic void setMaxCacheBytes(long maxCacheBytes)
maxCacheBytes
- the maxCacheBytes to setpublic void setMaxEntryBytes(int maxEntryBytes)
maxEntryBytes
- the maxEntryBytes to setpublic void setMaxKeys(int maxKeys)
maxKeys
- the maxKeys to set