com.atlassian.confluence.cache.tangosol
Class TangosolCacheManager

java.lang.Object
  extended by com.atlassian.confluence.cache.tangosol.TangosolCacheManager
All Implemented Interfaces:
com.atlassian.cache.CacheFactory, com.atlassian.cache.CacheManager

public class TangosolCacheManager
extends java.lang.Object
implements com.atlassian.cache.CacheManager

Implement caching using Tangosol's caching system.


Field Summary
static java.lang.String LOCAL_EVICTED_PREFIX
           
 
Constructor Summary
TangosolCacheManager(TangosolCacheFactory tangosolCacheFactory, java.lang.ClassLoader classLoader)
           
 
Method Summary
 void flushCaches()
           
<K,V> com.atlassian.cache.Cache<K,V>
getCache(java.lang.Class<?> owningClass, java.lang.String name)
           
<K,V> com.atlassian.cache.Cache<K,V>
getCache(java.lang.String cacheName)
           
<K,V> com.atlassian.cache.Cache<K,V>
getCache(java.lang.String name, com.atlassian.cache.CacheLoader<K,V> loader)
           
<K,V> com.atlassian.cache.Cache<K,V>
getCache(java.lang.String name, com.atlassian.cache.CacheLoader<K,V> loader, com.atlassian.cache.CacheSettings required)
           
<K,V> com.atlassian.cache.Cache<K,V>
getCache(java.lang.String name, java.lang.Class<K> keyType, java.lang.Class<V> valueType)
           
<V> com.atlassian.cache.CachedReference<V>
getCachedReference(java.lang.Class<?> owningClass, java.lang.String name, com.atlassian.cache.Supplier<V> supplier)
           
<V> com.atlassian.cache.CachedReference<V>
getCachedReference(java.lang.Class<?> owningClass, java.lang.String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings required)
           
<V> com.atlassian.cache.CachedReference<V>
getCachedReference(java.lang.String name, com.atlassian.cache.Supplier<V> supplier)
           
<V> com.atlassian.cache.CachedReference<V>
getCachedReference(java.lang.String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings required)
           
 java.util.Collection<com.atlassian.cache.Cache<?,?>> getCaches()
           
 com.atlassian.cache.ManagedCache getManagedCache(java.lang.String name)
           
 java.util.Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
           
 void setNonFlushableCaches(java.util.List<java.lang.String> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL_EVICTED_PREFIX

public static final java.lang.String LOCAL_EVICTED_PREFIX
See Also:
Constant Field Values
Constructor Detail

TangosolCacheManager

public TangosolCacheManager(TangosolCacheFactory tangosolCacheFactory,
                            java.lang.ClassLoader classLoader)
Method Detail

getCache

public <K,V> com.atlassian.cache.Cache<K,V> getCache(@NotNull
                                                     java.lang.String cacheName)
Specified by:
getCache in interface com.atlassian.cache.CacheFactory

getCaches

public java.util.Collection<com.atlassian.cache.Cache<?,?>> getCaches()
Specified by:
getCaches in interface com.atlassian.cache.CacheManager

flushCaches

public void flushCaches()
Specified by:
flushCaches in interface com.atlassian.cache.CacheManager

setNonFlushableCaches

public void setNonFlushableCaches(java.util.List<java.lang.String> list)

getManagedCaches

public java.util.Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
Specified by:
getManagedCaches in interface com.atlassian.cache.CacheManager

getManagedCache

public com.atlassian.cache.ManagedCache getManagedCache(@NotNull
                                                        java.lang.String name)
Specified by:
getManagedCache in interface com.atlassian.cache.CacheManager

getCachedReference

public <V> com.atlassian.cache.CachedReference<V> getCachedReference(java.lang.String name,
                                                                     com.atlassian.cache.Supplier<V> supplier)
Specified by:
getCachedReference in interface com.atlassian.cache.CacheFactory

getCachedReference

public <V> com.atlassian.cache.CachedReference<V> getCachedReference(java.lang.String name,
                                                                     com.atlassian.cache.Supplier<V> supplier,
                                                                     com.atlassian.cache.CacheSettings required)
Specified by:
getCachedReference in interface com.atlassian.cache.CacheFactory

getCachedReference

public <V> com.atlassian.cache.CachedReference<V> getCachedReference(java.lang.Class<?> owningClass,
                                                                     java.lang.String name,
                                                                     com.atlassian.cache.Supplier<V> supplier)
Specified by:
getCachedReference in interface com.atlassian.cache.CacheFactory

getCachedReference

public <V> com.atlassian.cache.CachedReference<V> getCachedReference(java.lang.Class<?> owningClass,
                                                                     java.lang.String name,
                                                                     com.atlassian.cache.Supplier<V> supplier,
                                                                     com.atlassian.cache.CacheSettings required)
Specified by:
getCachedReference in interface com.atlassian.cache.CacheFactory

getCache

public <K,V> com.atlassian.cache.Cache<K,V> getCache(java.lang.String name,
                                                     com.atlassian.cache.CacheLoader<K,V> loader,
                                                     com.atlassian.cache.CacheSettings required)
Specified by:
getCache in interface com.atlassian.cache.CacheFactory

getCache

public <K,V> com.atlassian.cache.Cache<K,V> getCache(java.lang.String name,
                                                     java.lang.Class<K> keyType,
                                                     java.lang.Class<V> valueType)
Specified by:
getCache in interface com.atlassian.cache.CacheFactory

getCache

public <K,V> com.atlassian.cache.Cache<K,V> getCache(java.lang.Class<?> owningClass,
                                                     java.lang.String name)
Specified by:
getCache in interface com.atlassian.cache.CacheFactory

getCache

public <K,V> com.atlassian.cache.Cache<K,V> getCache(java.lang.String name,
                                                     com.atlassian.cache.CacheLoader<K,V> loader)
Specified by:
getCache in interface com.atlassian.cache.CacheFactory


Copyright © 2003-2014 Atlassian. All Rights Reserved.