org.teiid.cache.jboss
Class ExpirationAwareCache<K,V>

java.lang.Object
  extended by org.teiid.cache.jboss.JBossCache<K,V>
      extended by org.teiid.cache.jboss.ExpirationAwareCache<K,V>
All Implemented Interfaces:
Cache<K,V>

public class ExpirationAwareCache<K,V>
extends JBossCache<K,V>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.teiid.cache.Cache
Cache.Type
 
Field Summary
 
Fields inherited from class org.teiid.cache.jboss.JBossCache
cacheListener, cacheStore, config, rootFqn
 
Constructor Summary
ExpirationAwareCache(org.jboss.cache.Cache cacheStore, org.jboss.cache.Fqn fqn)
           
 
Method Summary
 void clear()
           
 V get(K key)
           
 V put(K key, V value)
           
 V put(K key, V value, java.lang.Long ttl)
           
 V remove(K key)
           
 int size()
           
 
Methods inherited from class org.teiid.cache.jboss.JBossCache
addChild, addListener, getChild, getChildren, getName, getRootNode, keySet, removeChild, removeListener, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpirationAwareCache

public ExpirationAwareCache(org.jboss.cache.Cache cacheStore,
                            org.jboss.cache.Fqn fqn)
Method Detail

get

public V get(K key)
Specified by:
get in interface Cache<K,V>
Overrides:
get in class JBossCache<K,V>

put

public V put(K key,
             V value)
Overrides:
put in class JBossCache<K,V>

put

public V put(K key,
             V value,
             java.lang.Long ttl)
Specified by:
put in interface Cache<K,V>
Overrides:
put in class JBossCache<K,V>

remove

public V remove(K key)
Specified by:
remove in interface Cache<K,V>
Overrides:
remove in class JBossCache<K,V>

clear

public void clear()
Specified by:
clear in interface Cache<K,V>
Overrides:
clear in class JBossCache<K,V>

size

public int size()
Specified by:
size in interface Cache<K,V>
Overrides:
size in class JBossCache<K,V>


Copyright © 2010. All Rights Reserved.