Uses of Interface
org.jivesoftware.util.cache.Cache
-
Packages that use Cache Package Description org.jivesoftware.openfire org.jivesoftware.util Utility classes.org.jivesoftware.util.cache -
-
Uses of Cache in org.jivesoftware.openfire
Methods in org.jivesoftware.openfire that return Cache Modifier and Type Method Description Cache<String,ClientSessionInfo>SessionManager. getSessionInfoCache() -
Uses of Cache in org.jivesoftware.util
Methods in org.jivesoftware.util that return Cache Modifier and Type Method Description Cache[]WebManager. getCaches() -
Uses of Cache in org.jivesoftware.util.cache
Classes in org.jivesoftware.util.cache that implement Cache Modifier and Type Class Description classCacheWrapper<K extends Serializable,V extends Serializable>Acts as a proxy for a Cache implementation.classCaffeineCache<K extends Serializable,V extends Serializable>Wraps an instance of Ben Manes' Caffeine cache in a class that inherits fromCache.classComponentCacheWrapper<K extends Serializable,V extends Serializable>This specialized wrapper is used for the Components cache, which should not be purged.classDefaultCache<K extends Serializable,V extends Serializable>Default, non-distributed implementation of the Cache interface.Methods in org.jivesoftware.util.cache with type parameters of type Cache Modifier and Type Method Description static <T extends Cache>
TCacheFactory. createCache(String name)Returns the named cache, creating it as necessary.static <T extends Cache>
TCacheFactory. createLocalCache(String name)Returns the named local cache, creating it as necessary.Methods in org.jivesoftware.util.cache that return Cache Modifier and Type Method Description CacheCacheFactoryStrategy. createCache(String name)Creates a new cache for the cache name specified.CacheDefaultLocalCacheStrategy. createCache(String name)static Cache[]CacheFactory. getAllCaches()Returns an array of all caches in the system.Cache<K,V>CacheWrapper. getWrappedCache()Methods in org.jivesoftware.util.cache with parameters of type Cache Modifier and Type Method Description static <K extends Serializable,V,C extends Collection<V> & Serializable>
voidCacheUtil. addValueToMultiValuedCache(Cache<K,C> cache, K key, V element, Supplier<C> supplier)Adds the specified element to a cache, in a collection that is mapped by the provided key.voidCacheFactoryStrategy. destroyCache(Cache cache)Destroys the supplied cache.voidDefaultLocalCacheStrategy. destroyCache(Cache cache)static LockCacheFactory. getLock(Object key, Cache cache)Deprecated.in favour ofgetLock(K).LockCacheFactoryStrategy. getLock(Object key, Cache cache)Returns an existing lock on the specified key or creates a new one if none was found.LockDefaultLocalCacheStrategy. getLock(Object key, Cache cache)static <K extends Serializable,V extends Serializable>
Set<K>CacheUtil. removeValueFromCache(Cache<K,V> cache, V element)Removes all entries of a cache that map to the provided value.static <K extends Serializable,V,C extends Collection<V> & Serializable>
voidCacheUtil. removeValueFromMultiValuedCache(Cache<K,C> cache, K key, V element)Removes all instances of the specified element from the collection that is mapped by the provided key.static <K extends Serializable,V,C extends Collection<V> & Serializable>
Map<Boolean,Map<K,C>>CacheUtil. removeValueFromMultiValuedCache(Cache<K,C> cache, V element)Removes all instances of the specified element from every collection that is a value of the cache.static <K extends Serializable,V extends Serializable>
voidCacheUtil. replaceValueInCache(Cache<K,V> cache, V oldValue, V newValue)Replaces all instances of a particular value in a cache.static <K extends Serializable,V extends Serializable>
voidCacheUtil. replaceValueInCacheByMapping(Cache<K,V> cache, Function<V,V> mapper)Applies a mapping function to all values in a cache.static <K extends Serializable,V,C extends Collection<V> & Serializable>
voidCacheUtil. replaceValueInMultivaluedCache(Cache<K,C> cache, V oldValue, V newValue)Replaces an element in a cache that has collection-based values.static <K extends Serializable,V extends Serializable>
Set<K>CacheUtil. retainValueInCache(Cache<K,V> cache, V element)Remove elements from every collection that is a value of the cache, except for the specified element.static <K extends Serializable,V,C extends Collection<V> & Serializable>
Map<Boolean,Map<K,C>>CacheUtil. retainValueInMultiValuedCache(Cache<K,C> cache, V element)Remove elements from every collection that is a value of the cache, except for the specified element.Method parameters in org.jivesoftware.util.cache with type arguments of type Cache Modifier and Type Method Description voidCacheFactoryStrategy. updateCacheStats(Map<String,Cache> caches)Updates the statistics of the specified caches and publishes them into a cache for statistics.voidDefaultLocalCacheStrategy. updateCacheStats(Map<String,Cache> caches)Constructors in org.jivesoftware.util.cache with parameters of type Cache Constructor Description ComponentCacheWrapper(Cache<K,V> cache)
-