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

Package class diagram package InfinispanDelegatingCache
java.lang.Object
  extended by de.smartics.properties.spi.config.cache.infinispan.InfinispanDelegatingCache<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 class InfinispanDelegatingCache<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
InfinispanDelegatingCache(org.infinispan.Cache<K,V> cache)
          Constructor.
 
Method Summary
 V get(Object key)
           
 void put(K key, V value)
           
 void put(K key, V value, int lifespan, TimeUnit lifespanTimeUnit, int maxIdleTime, TimeUnit maxIdleTimeTimeUnit)
           
 void put(K key, V resolvedProperty, long updateIntervalInMs, TimeUnit milliseconds)
           
 V remove(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfinispanDelegatingCache

public InfinispanDelegatingCache(org.infinispan.Cache<K,V> cache)
Constructor.

Parameters:
cache - the cache to delegate to.
Method Detail

get

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

put

public final void put(K key,
                      V resolvedProperty,
                      long updateIntervalInMs,
                      TimeUnit milliseconds)
Specified by:
put in interface de.smartics.properties.spi.config.cache.UnawareCache<K,V>

remove

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

put

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

put

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


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