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.
 ManagedCache getManagedCache(String name)
          Returns the managed cache for the specified name.
 Collection<ManagedCache> getManagedCaches()
          Gets the collection of caches managed.
 
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()

getManagedCache

@Nullable
ManagedCache getManagedCache(@NotNull
                                      String name)
Returns the managed cache for the specified name.

Parameters:
name - the name of the managed cache to retrieve
Returns:
the ManagedCache specified by name or null if no cache exists.
Since:
2.3.0


Copyright © 2014 Atlassian. All Rights Reserved.