de.smartics.properties.spi.config.cache.infinispan
Class InfinispanCompoundKeyDelegatingCache<K,V>

Package class diagram package InfinispanCompoundKeyDelegatingCache
java.lang.Object
  extended by de.smartics.properties.spi.config.cache.infinispan.InfinispanCompoundKeyDelegatingCache<K,V>
Type Parameters:
K - the type for the key.
V - the type for the value.
All Implemented Interfaces:
de.smartics.properties.spi.config.cache.UnawareCache<K,V>

public final class InfinispanCompoundKeyDelegatingCache<K,V>
     
     
extends Object
implements de.smartics.properties.spi.config.cache.UnawareCache<K,V>

Implementation of an cache that delegates to an infinispan cache.


Constructor Summary
InfinispanCompoundKeyDelegatingCache(String cacheName, org.infinispan.Cache cache)
          Constructor to create a cache.
 
Method Summary
 V get(Object key)
           
 void put(K key, V value)
           
 void put(K key, V value, int interval, TimeUnit unit, int maxIdleTime, TimeUnit maxIdleTimeTimeUnit)
           
 void put(K key, V value, long interval, TimeUnit unit)
           
 V remove(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfinispanCompoundKeyDelegatingCache

public InfinispanCompoundKeyDelegatingCache(String cacheName,
                                            org.infinispan.Cache cache)
Constructor to create a cache.

Parameters:
cacheName - the name of the cache.
cache - the cach under the hood, that is used to store everything.
Method Detail

get

public V get(Object key)
Specified by:
get in interface de.smartics.properties.spi.config.cache.UnawareCache<K,V>

put

public void put(K key,
                V value,
                long interval,
                TimeUnit unit)
Specified by:
put in interface de.smartics.properties.spi.config.cache.UnawareCache<K,V>

put

public void put(K key,
                V value)
Specified by:
put in interface de.smartics.properties.spi.config.cache.UnawareCache<K,V>

put

public void put(K key,
                V value,
                int interval,
                TimeUnit unit,
                int maxIdleTime,
                TimeUnit maxIdleTimeTimeUnit)
Specified by:
put in interface de.smartics.properties.spi.config.cache.UnawareCache<K,V>

remove

public V remove(Object key)
Specified by:
remove in interface de.smartics.properties.spi.config.cache.UnawareCache<K,V>


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.