org.norther.tammi.core.cache
Interface KeyCacheClient

All Superinterfaces:
CacheClient, Refreshable
All Known Subinterfaces:
HibernatePersisterFactory, OJBPersisterFactory, PersisterFactory, XMLPersisterFactory
All Known Implementing Classes:
AbstractPersisterFactory, DefaultHibernatePersisterFactory, DefaultKeyCacheClient, DefaultOJBPersisterFactory, DefaultXMLPersisterFactory

public interface KeyCacheClient
extends CacheClient

Extends CacheClient by supporting more than one key based client caches.

Author:
Ilkka Priha

Method Summary
 Set cacheKeySet()
          Returns the cache key set.
 void clearCaches()
          Removes all caches.
 ConcurrentMap getCache(String key, boolean create)
          Gets and optionally creates the cache for the specified key.
 void removeCache(String key)
          Removes the specified cache.
 
Methods inherited from interface org.norther.tammi.core.cache.CacheClient
clearCached, expireCached, expireFraction, getCache, isCachingDisabled, removeCache, setCachingDisabled
 
Methods inherited from interface org.norther.tammi.core.base.Refreshable
getRefreshed, refresh
 

Method Detail

getCache

ConcurrentMap getCache(String key,
                       boolean create)
Gets and optionally creates the cache for the specified key.

Parameters:
key - the cache key.
create - true to create a missing cache.
Returns:
the cache or null if disabled.

removeCache

void removeCache(String key)
Removes the specified cache.

Parameters:
key - the cache key.

cacheKeySet

Set cacheKeySet()
Returns the cache key set.

Returns:
the client key set.

clearCaches

void clearCaches()
Removes all caches.



Copyright © 2004 The Norther Organization. All rights reserved.