|
JBoss MetaData Repository 2.2.0.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.metadata.plugins.cache.ConcurrentHashMapCache<K,V>
K
- the key classV
- the value classpublic class ConcurrentHashMapCache<K,V>
Simple map backed-up cache.
Constructor Summary | |
---|---|
ConcurrentHashMapCache()
|
Method Summary | |
---|---|
void |
clear()
Clear node. |
V |
get(K key)
Get value under key. |
V |
put(K key,
V value)
Put value under key. |
V |
remove(K key)
Remove value under key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConcurrentHashMapCache()
Method Detail |
---|
public V put(K key, V value)
Cache
put
in interface Cache<K,V>
key
- the keyvalue
- the value
public V get(K key)
Cache
get
in interface Cache<K,V>
key
- the key
public V remove(K key)
Cache
remove
in interface Cache<K,V>
key
- the key
public void clear()
Cache
clear
in interface Cache<K,V>
|
JBoss MetaData Repository 2.2.0.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |