com.metamatrix.cache.jboss
Class JBossCache<K,V>

java.lang.Object
  extended by com.metamatrix.cache.jboss.JBossCache<K,V>
All Implemented Interfaces:
Cache<K,V>

public class JBossCache<K,V>
extends java.lang.Object
implements Cache<K,V>

Implementation of Cache using JBoss Cache


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.metamatrix.cache.Cache
Cache.Type
 
Constructor Summary
JBossCache(org.jboss.cache.Cache cacheStore, org.jboss.cache.Fqn fqn)
           
 
Method Summary
 Cache addChild(java.lang.String name)
          
 void addListener(CacheListener listener)
          
 void clear()
          
 V get(K key)
          
 Cache getChild(java.lang.String name)
          
 java.util.List<Cache> getChildren()
          
 java.util.Set<K> keySet()
          
 V put(K key, V value)
          
 V remove(K key)
          
 boolean removeChild(java.lang.String name)
          
 void removeListener()
          
 int size()
          
 java.util.Collection<V> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossCache

public JBossCache(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>

put

public V put(K key,
             V value)

Specified by:
put in interface Cache<K,V>

remove

public V remove(K key)

Specified by:
remove in interface Cache<K,V>

keySet

public java.util.Set<K> keySet()

Specified by:
keySet 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>

values

public java.util.Collection<V> values()
Specified by:
values in interface Cache<K,V>

addListener

public void addListener(CacheListener listener)

Specified by:
addListener in interface Cache<K,V>

removeListener

public void removeListener()

Specified by:
removeListener in interface Cache<K,V>

addChild

public Cache addChild(java.lang.String name)

Specified by:
addChild in interface Cache<K,V>

getChild

public Cache getChild(java.lang.String name)

Specified by:
getChild in interface Cache<K,V>

getChildren

public java.util.List<Cache> getChildren()

Specified by:
getChildren in interface Cache<K,V>

removeChild

public boolean removeChild(java.lang.String name)

Specified by:
removeChild in interface Cache<K,V>


Copyright © 2009. All Rights Reserved.