|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.flex.CmsFlexCacheConfiguration
public class CmsFlexCacheConfiguration
Flex Cache configuration class.
Constructor Summary | |
---|---|
CmsFlexCacheConfiguration()
Empty public constructor for the digester. |
Method Summary | |
---|---|
long |
getAvgCacheBytes()
Returns the average cache bytes. |
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 |
setMaxCacheBytes(long maxCacheBytes)
Sets the maxCacheBytes. |
void |
setMaxEntryBytes(int maxEntryBytes)
Sets the maxEntryBytes. |
void |
setMaxKeys(int maxKeys)
Sets the maxKeys. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsFlexCacheConfiguration()
Method Detail |
---|
public long getAvgCacheBytes()
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 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
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |