|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opengts.extra.util.MemCache.MemCacheMap<KEY,VAL>
public class MemCache.MemCacheMap<KEY,VAL>
Class MemCachMap
| Constructor Summary | |
|---|---|
MemCache.MemCacheMap()
|
|
MemCache.MemCacheMap(int maxSize)
|
|
| Method Summary | |
|---|---|
void |
addValue(KEY key,
VAL val)
Add entry to cache |
boolean |
exceedsMaximumCacheSize(double maxGain)
|
int |
getMaximumCacheSize()
Gets the maximum cache size |
int |
getMaximumCacheSizeCutbackCount()
|
long |
getMaximumEntryAgeMS()
|
int |
getSize()
|
int |
getTrimCacheSize()
|
VAL |
getValue(KEY key,
VAL dft)
Get entry from cache |
boolean |
hasValue(KEY key)
Returns true if the specified key exists in the cache |
int |
setMaximumCacheSize(int max)
Sets the maximum cache size |
long |
setMaximumEntryAgeMS(long max)
|
int |
setTrimCacheSize(int min)
|
java.lang.String |
toString()
|
void |
trimCache(java.lang.String msg)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MemCache.MemCacheMap()
public MemCache.MemCacheMap(int maxSize)
| Method Detail |
|---|
public int getMaximumCacheSize()
MemCacheAPI
getMaximumCacheSize in interface MemCacheAPI<KEY,VAL>public int setMaximumCacheSize(int max)
MemCacheAPI
setMaximumCacheSize in interface MemCacheAPI<KEY,VAL>max - The maximum cache size
public boolean exceedsMaximumCacheSize(double maxGain)
public int getTrimCacheSize()
public int setTrimCacheSize(int min)
public int getMaximumCacheSizeCutbackCount()
public long getMaximumEntryAgeMS()
public long setMaximumEntryAgeMS(long max)
public int getSize()
public boolean hasValue(KEY key)
MemCacheAPI
hasValue in interface MemCacheAPI<KEY,VAL>key - The key to check for existence
public void addValue(KEY key,
VAL val)
MemCacheAPI
addValue in interface MemCacheAPI<KEY,VAL>key - The key to addval - The value to associate with the specified key
public VAL getValue(KEY key,
VAL dft)
MemCacheAPI
getValue in interface MemCacheAPI<KEY,VAL>key - The key of the value to retrievedft - The default value if the key does not exist
public void trimCache(java.lang.String msg)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||