com.oroad.stxx.cache
Interface CacheManager

All Known Implementing Classes:
CacheManagerImpl

public interface CacheManager

Manages caches of objects.

Author:
Don Brown

Field Summary
static java.lang.String DEFAULT_CACHE_CLASS
          The name of the default cache implementation class
 
Method Summary
 void addCache(Cache cache)
          Adds a cache
 void clearCaches()
          Clears all caches
 void destroy()
          Stops all threads and removes all caches
 Cache getCache(java.lang.String cacheName)
          Gets the cache
 void removeCache(java.lang.String cacheName)
          Removes a cache
 

Field Detail

DEFAULT_CACHE_CLASS

public static final java.lang.String DEFAULT_CACHE_CLASS
The name of the default cache implementation class

See Also:
Constant Field Values
Method Detail

getCache

public Cache getCache(java.lang.String cacheName)
Gets the cache

Parameters:
cacheName - The name of the cache to retrieve
Returns:
The cache value

addCache

public void addCache(Cache cache)
Adds a cache

Parameters:
cache - The cache to add

removeCache

public void removeCache(java.lang.String cacheName)
Removes a cache

Parameters:
cacheName - The name of the cache to remove

clearCaches

public void clearCaches()
Clears all caches


destroy

public void destroy()
Stops all threads and removes all caches