Package org.ametys.core.cache
Class AbstractCacheManager.CacheInfo
- java.lang.Object
-
- org.ametys.core.cache.AbstractCacheManager.CacheInfo
-
- Enclosing class:
- AbstractCacheManager
protected static final class AbstractCacheManager.CacheInfo extends Object
Encapsulation of name and description of a cache
-
-
Field Summary
Fields Modifier and Type Field Description private boolean_computableSizeprivate I18nizableText_descriptionprivate I18nizableText_name
-
Constructor Summary
Constructors Constructor Description CacheInfo(I18nizableText name, I18nizableText description, boolean computableSize)Create new CacheInfo with name and description
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableTextgetDescription()get the description of the CacheInfoI18nizableTextgetName()get the name of the CacheInfobooleanisComputableSize()Is the cache size computable
-
-
-
Field Detail
-
_name
private I18nizableText _name
-
_description
private I18nizableText _description
-
_computableSize
private boolean _computableSize
-
-
Constructor Detail
-
CacheInfo
public CacheInfo(I18nizableText name, I18nizableText description, boolean computableSize)
Create new CacheInfo with name and description- Parameters:
name- the name of the CacheInfodescription- the description of the CacheInfocomputableSize- true if the size of the cache can be computed
-
-
Method Detail
-
getName
public I18nizableText getName()
get the name of the CacheInfo- Returns:
- the name of the CacheInfo
-
getDescription
public I18nizableText getDescription()
get the description of the CacheInfo- Returns:
- the description of the CacheInfo
-
isComputableSize
public boolean isComputableSize()
Is the cache size computable- Returns:
- true if the cache size is computable
-
-