Class MessageCache
java.lang.Object
com.vmware.vipclient.i18n.base.cache.MessageCache
- All Implemented Interfaces:
Cache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclear()clear all components in the cacheget a component's cached data by keyintintget a id of translation droplongget expired timegetId()longget time of last cleanintget the cache capacitybooleanDeprecated.booleanisFull()keySet()get the set of cached keysbooleanput strings to cache by keybooleanremove a component from cache by keyvoidsetCapacityByKey(int capacityByKey) voidvoidsetExpiredTime(long millis) set expired timevoidvoidsetLastClean(long millis) set time of last cleanvoidsetXCapacity(int capacityX) set the cache's capacity by specifying the count of componentsintsize()get count of current cached components
-
Constructor Details
-
MessageCache
public MessageCache() -
MessageCache
-
-
Method Details
-
getCachedTranslationMap
-
getHitMap
-
getId
-
setId
-
get
Description copied from interface:Cacheget a component's cached data by key -
getRemovedKeyFromHitMap
-
put
Description copied from interface:Cacheput strings to cache by key -
remove
Description copied from interface:Cacheremove a component from cache by key -
clear
public boolean clear()Description copied from interface:Cacheclear all components in the cache -
size
public int size()Description copied from interface:Cacheget count of current cached components -
keySet
Description copied from interface:Cacheget the set of cached keys -
getExpiredTime
public long getExpiredTime()Description copied from interface:Cacheget expired time- Specified by:
getExpiredTimein interfaceCache- Returns:
- long time
-
setExpiredTime
public void setExpiredTime(long millis) Description copied from interface:Cacheset expired time- Specified by:
setExpiredTimein interfaceCache
-
getLastClean
public long getLastClean()Description copied from interface:Cacheget time of last clean- Specified by:
getLastCleanin interfaceCache- Returns:
- long time
-
setLastClean
public void setLastClean(long millis) Description copied from interface:Cacheset time of last clean- Specified by:
setLastCleanin interfaceCache
-
getCachedKeySize
public int getCachedKeySize() -
setCapacityByKey
public void setCapacityByKey(int capacityByKey) -
getCapacityByKey
public int getCapacityByKey() -
setXCapacity
public void setXCapacity(int capacityX) Description copied from interface:Cacheset the cache's capacity by specifying the count of components- Specified by:
setXCapacityin interfaceCache
-
getXCapacity
public int getXCapacity()Description copied from interface:Cacheget the cache capacity- Specified by:
getXCapacityin interfaceCache- Returns:
- cache capacity
-
isFull
public boolean isFull() -
isExpired
public boolean isExpired()Deprecated.Use theisExpiredmethod. -
getDropId
Description copied from interface:Cacheget a id of translation drop -
setDropId
-
isExpiredmethod.