| Constructor and Description |
|---|
MessageCache2() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear()
clear all components in the cache
|
java.util.Map<java.lang.String,java.lang.String> |
get(java.lang.String cacheKey)
get a component's strings by key
|
int |
getCacheKeySize() |
java.lang.String |
getDropId()
get a id of translation drop
|
long |
getExpiredTime()
get expired time
|
long |
getLastClean()
get time of last clean
|
int |
getXCapacity()
get the cache capacity
|
int |
getYCapacity() |
boolean |
isExpired()
check if the cache is expired
|
boolean |
isFull() |
java.util.Set<java.lang.String> |
keySet()
get the set of cached keys
|
boolean |
put(java.lang.String cacheKey,
java.util.Map<java.lang.String,java.lang.String> map)
put strings to cache by key
|
boolean |
remove(java.lang.String cacheKey)
remove a component from cache by key
|
void |
setDropId(java.lang.String dropId) |
void |
setExpiredTime(long millis)
set expired time
|
void |
setLastClean(long millis)
set time of last clean
|
void |
setXCapacity(int capacityX)
set the cache's capacity by specifying the count of components
|
void |
setYCapacity(int capacityY) |
int |
size()
get count of current cached components
|
int |
sizeOfComponent() |
public java.util.Map<java.lang.String,java.lang.String> get(java.lang.String cacheKey)
Cachepublic boolean put(java.lang.String cacheKey,
java.util.Map<java.lang.String,java.lang.String> map)
Cachepublic boolean remove(java.lang.String cacheKey)
Cachepublic boolean clear()
Cachepublic int sizeOfComponent()
public int size()
Cachepublic java.util.Set<java.lang.String> keySet()
Cachepublic long getExpiredTime()
CachegetExpiredTime in interface Cachepublic void setExpiredTime(long millis)
CachesetExpiredTime in interface Cachepublic long getLastClean()
CachegetLastClean in interface Cachepublic void setLastClean(long millis)
CachesetLastClean in interface Cachepublic int getCacheKeySize()
public void setXCapacity(int capacityX)
CachesetXCapacity in interface Cachepublic int getXCapacity()
CachegetXCapacity in interface Cachepublic int getYCapacity()
public void setYCapacity(int capacityY)
public boolean isFull()
public boolean isExpired()
Cachepublic java.lang.String getDropId()
Cachepublic void setDropId(java.lang.String dropId)