|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The main interface for the cache. Provides administrative methods as well as methods to add, lookup, and remove entries from a cache.
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Method Summary | |
void |
addEntry(java.lang.Object key,
java.lang.Object value)
Deprecated. use put |
void |
addEntry(java.lang.Object key,
java.lang.Object value,
long ttl)
Deprecated. use put |
boolean |
containsEntry(java.lang.Object key)
Deprecated. use containsKey |
void |
disable()
Enable or disable the whole cache. |
void |
enable()
|
java.lang.Object |
fetchEntry(java.lang.Object key)
Deprecated. use get |
int |
getEntryCount()
Deprecated. use size |
long |
getHitCount()
|
int |
getHitRate()
Percent of cache calls which hit - a whole number percentage. |
int |
getMaxEntries()
Set the max number of items the cache can have. |
long |
getMissCount()
|
long |
getTtl()
|
boolean |
isEnabled()
Is enabled. |
boolean |
isFull()
Is full. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value,
long ttl)
Put a value into the cache. |
void |
remove(java.lang.Object[] keys)
Remove an array of entries. |
void |
removeAllEntries()
Deprecated. use clear |
void |
removeEntry(java.lang.Object key)
Deprecated. use remove |
void |
resetStats()
Reset hitCount and missCount |
void |
setMaxEntries(int maxEntries)
Set the max number of items the cache can have. |
void |
setTtl(long ttlMillis)
Set a time-to-live for entries in this cache. |
Methods inherited from interface java.util.Map |
clear,
containsKey,
containsValue,
entrySet,
equals,
get,
hashCode,
isEmpty,
keySet,
put,
putAll,
remove,
size,
values |
Method Detail |
public boolean containsEntry(java.lang.Object key)
key
- boolean
public java.lang.Object fetchEntry(java.lang.Object key)
key
- Object
public void addEntry(java.lang.Object key, java.lang.Object value)
key
- value
- public void addEntry(java.lang.Object key, java.lang.Object value, long ttl)
key
- value
- ttl
- public java.lang.Object put(java.lang.Object key, java.lang.Object value, long ttl)
key
- value
- ttl
- Object
public void removeEntry(java.lang.Object key)
key
- public void remove(java.lang.Object[] keys)
key
- public boolean isFull()
boolean
public boolean isEnabled()
boolean
public void setTtl(long ttlMillis)
public long getTtl()
public void disable()
public void enable()
public void resetStats()
public long getHitCount()
public long getMissCount()
public int getHitRate()
public void setMaxEntries(int maxEntries)
public int getMaxEntries()
public int getEntryCount()
public void removeAllEntries()
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |