com.atlassian.confluence.cache
Interface ReadThroughCacheFactory

All Superinterfaces:
com.atlassian.cache.CacheFactory
All Known Implementing Classes:
TransactionalCacheFactory

public interface ReadThroughCacheFactory
extends com.atlassian.cache.CacheFactory

Implemented by cache factories that can provide special read-through cache functionality. A read-through update should be non-transactional and prevent concurrent updates.

See Also:
TransactionalCacheFactory, CacheFactory

Method Summary
<K,V> com.atlassian.cache.Cache<K,V>
getReadThroughCacheForUpdate(com.atlassian.cache.Cache<K,V> cache)
          Returns the requested cache for updates read from the database.
<K,V> com.atlassian.cache.Cache<K,V>
getReadThroughCacheForUpdate(java.lang.String cacheName)
          Returns the requested cache for updates read from the database.
 
Methods inherited from interface com.atlassian.cache.CacheFactory
getCache, getCache, getCache, getCache, getCache, getCachedReference, getCachedReference, getCachedReference, getCachedReference
 

Method Detail

getReadThroughCacheForUpdate

<K,V> com.atlassian.cache.Cache<K,V> getReadThroughCacheForUpdate(java.lang.String cacheName)
Returns the requested cache for updates read from the database. Implementations should provide a cache that is non-transactional but still prevents concurrent updates.


getReadThroughCacheForUpdate

<K,V> com.atlassian.cache.Cache<K,V> getReadThroughCacheForUpdate(com.atlassian.cache.Cache<K,V> cache)
Returns the requested cache for updates read from the database. Implementations should provide a cache that is non-transactional but still prevents concurrent updates.



Copyright © 2003-2014 Atlassian. All Rights Reserved.