1 package com.atlassian.cache;
2
3 import com.atlassian.annotations.Internal;
4 import com.atlassian.util.concurrent.Nullable;
5
6 import java.util.Collection;
7 import javax.management.MBeanServer;
8
9 @Internal
10 public interface CacheManager extends CacheFactory
11 {
12 /**
13 * Gets the collection of caches managed. This collection is not a "live" collection. It is a copy.
14 * @return a collection of {@link Cache}s.
15 * @deprecated Since 2.0. Use {@link #getManagedCaches()} instead.
16 */
17 @Deprecated
18 Collection<Cache<?, ?>> getCaches();
19
20 /**
21 * Gets the collection of caches managed. This collection is not a "live" collection. It is a copy.
22 * @return a collection of {@link ManagedCache}s.
23 */
24 Collection<ManagedCache> getManagedCaches();
25
26 /**
27 * Flush the contents of all flushable caches registered with the cache manager.
28 *
29 * @see com.atlassian.cache.CacheSettings#getFlushable()
30 */
31 void flushCaches();
32 }