com.atlassian.cache
Interface CacheManager

All Superinterfaces:
CacheFactory
All Known Implementing Classes:
AbstractCacheManager, EhCacheManager, MemoryCacheManager

@Internal
public interface CacheManager
extends CacheFactory


Method Summary
 void flushCaches()
          Flush the contents of all flushable caches registered with the cache manager.
 Collection<Cache<?,?>> getCaches()
          Deprecated. Since 2.0. Use getManagedCaches() instead.
 Collection<ManagedCache> getManagedCaches()
          Gets the collection of caches managed.
 void registerMBeans(MBeanServer mBeanServer)
          Tells this cache manager to register its JMX MBeans with the given server.
 
Methods inherited from interface com.atlassian.cache.CacheFactory
getCache, getCache, getCache, getCache, getCache, getCachedReference, getCachedReference, getCachedReference, getCachedReference
 

Method Detail

getCaches

@Deprecated
Collection<Cache<?,?>> getCaches()
Deprecated. Since 2.0. Use getManagedCaches() instead.

Gets the collection of caches managed. This collection is not a "live" collection. It is a copy.

Returns:
a collection of Caches.

getManagedCaches

Collection<ManagedCache> getManagedCaches()
Gets the collection of caches managed. This collection is not a "live" collection. It is a copy.

Returns:
a collection of ManagedCaches.

flushCaches

void flushCaches()
Flush the contents of all flushable caches registered with the cache manager.

See Also:
CacheSettings.getFlushable()

registerMBeans

void registerMBeans(@Nullable
                    MBeanServer mBeanServer)
Tells this cache manager to register its JMX MBeans with the given server. What beans are registered, if any, is up to the atlassian-cache implementation.

Parameters:
mBeanServer - the server with which to register the MBeans (ignored if null)
Since:
2.0.8


Copyright © 2014 Atlassian. All Rights Reserved.