org.teiid.cache.jboss
Class JBossCache<K,V>
java.lang.Object
org.teiid.cache.jboss.JBossCache<K,V>
- All Implemented Interfaces:
- Cache<K,V>
- Direct Known Subclasses:
- ExpirationAwareCache
public class JBossCache<K,V>
- extends java.lang.Object
- implements Cache<K,V>
Implementation of Cache using JBoss Cache
| Nested classes/interfaces inherited from interface org.teiid.cache.Cache |
Cache.Type |
|
Constructor Summary |
JBossCache(org.jboss.cache.Cache<K,V> cacheStore,
org.jboss.cache.Fqn fqn)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cacheStore
protected org.jboss.cache.Cache<K,V> cacheStore
rootFqn
protected org.jboss.cache.Fqn rootFqn
cacheListener
protected JBossCacheListener cacheListener
config
protected CacheConfiguration config
JBossCache
public JBossCache(org.jboss.cache.Cache<K,V> cacheStore,
org.jboss.cache.Fqn fqn)
get
public V get(K key)
- Specified by:
get in interface Cache<K,V>
getFqn
protected org.jboss.cache.Fqn<java.lang.String> getFqn(K key)
put
public V put(K key,
V value)
put
public V put(K key,
V value,
java.lang.Long ttl)
- Specified by:
put in interface Cache<K,V>
remove
public V remove(K key)
- Specified by:
remove in interface Cache<K,V>
size
public int size()
- Specified by:
size in interface Cache<K,V>
clear
public void clear()
- Specified by:
clear in interface Cache<K,V>
addListener
public void addListener(CacheListener listener)
removeListener
public void removeListener()
getRootNode
protected org.jboss.cache.Node<K,V> getRootNode()
getName
public java.lang.String getName()
- Specified by:
getName in interface Cache<K,V>
keys
public java.util.Set<K> keys()
- Specified by:
keys in interface Cache<K,V>
Copyright © 2010. All Rights Reserved.