de.smartics.properties.spi.config.cache.infinispan
Class AbstractInfinispanCompoundKeyCacheManager

Package class diagram package AbstractInfinispanCompoundKeyCacheManager
java.lang.Object
  extended by de.smartics.properties.spi.config.cache.infinispan.AbstractInfinispanCompoundKeyCacheManager
All Implemented Interfaces:
de.smartics.properties.spi.config.cache.CacheManager
Direct Known Subclasses:
JndiInfinispanCompoundKeyCacheManager

public abstract class AbstractInfinispanCompoundKeyCacheManager
     
     
extends Object
implements de.smartics.properties.spi.config.cache.CacheManager

The base implementation to connect to Infinispan caches.


Constructor Summary
AbstractInfinispanCompoundKeyCacheManager(CacheManagerProxy cacheManager)
          Default constructor.
 
Method Summary
 void clear(String cacheName)
          Clears the cache with the given name.
 void clearAll()
          Removes all keys from all caches.
 void discard(String cacheName)
          Clears and stops the cache.
 Set<String> getCacheNames()
          Returns the set of cache names.
 de.smartics.properties.spi.config.cache.Cache getConfigurationsCache(String cacheName)
          Returns the configurations cache with the given name.
 de.smartics.properties.spi.config.cache.UnawareCache getPropertiesCache(String cacheName)
          Returns the properties cache with the given name.
 void stop(String cacheName)
          Stops the cache with the given name.
 void stopAll()
          Stops all caches, rendering the manager in a stopped state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInfinispanCompoundKeyCacheManager

public AbstractInfinispanCompoundKeyCacheManager(CacheManagerProxy cacheManager)
Default constructor.

Parameters:
manager - the Infinispan cache manager.
Method Detail

clearAll

public final void clearAll()
Removes all keys from all caches.

Specified by:
clearAll in interface de.smartics.properties.spi.config.cache.CacheManager

clear

public final void clear(String cacheName)
Clears the cache with the given name.

Specified by:
clear in interface de.smartics.properties.spi.config.cache.CacheManager
Parameters:
cacheName - the name of the cache to be cleared.

discard

public final void discard(String cacheName)
Clears and stops the cache.

Specified by:
discard in interface de.smartics.properties.spi.config.cache.CacheManager
Parameters:
cacheName - the name of the cache to be cleared and stopped.

stopAll

public final void stopAll()
Stops all caches, rendering the manager in a stopped state.

Specified by:
stopAll in interface de.smartics.properties.spi.config.cache.CacheManager

stop

public final void stop(String cacheName)
Stops the cache with the given name.

Specified by:
stop in interface de.smartics.properties.spi.config.cache.CacheManager
Parameters:
cacheName - the name of the cache to stop.

getPropertiesCache

public final de.smartics.properties.spi.config.cache.UnawareCache getPropertiesCache(String cacheName)
Returns the properties cache with the given name. The cache is already started.

Specified by:
getPropertiesCache in interface de.smartics.properties.spi.config.cache.CacheManager
Parameters:
cacheName - the name of the cache to fetch.
Returns:
the requested cache already started.

getConfigurationsCache

public final de.smartics.properties.spi.config.cache.Cache getConfigurationsCache(String cacheName)
Returns the configurations cache with the given name. The cache is already started.

Specified by:
getConfigurationsCache in interface de.smartics.properties.spi.config.cache.CacheManager
Parameters:
cacheName - the name of the cache to fetch.
Returns:
the requested cache already started.

getCacheNames

public final Set<String> getCacheNames()
Returns the set of cache names.

Specified by:
getCacheNames in interface de.smartics.properties.spi.config.cache.CacheManager
Returns:
the set of cache names.


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