de.smartics.properties.spi.config.cache.infinispan
Class InfinispanCompoundKeyDelegatingCache<K,V>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.