Package | Description |
---|---|
org.jivesoftware.openfire | |
org.jivesoftware.util |
Utility classes.
|
org.jivesoftware.util.cache |
Modifier and Type | Method and Description |
---|---|
Cache<String,ClientSessionInfo> |
SessionManager.getSessionInfoCache() |
Modifier and Type | Method and Description |
---|---|
Cache[] |
WebManager.getCaches() |
Modifier and Type | Class and Description |
---|---|
class |
CacheWrapper<K extends Serializable,V extends Serializable>
Acts as a proxy for a Cache implementation.
|
class |
CaffeineCache<K extends Serializable,V extends Serializable>
Wraps an instance of Ben Manes' Caffeine cache in a class that inherits from
Cache . |
class |
ComponentCacheWrapper<K extends Serializable,V extends Serializable>
This specialized wrapper is used for the Components cache, which
should not be purged.
|
class |
DefaultCache<K extends Serializable,V extends Serializable>
Default, non-distributed implementation of the Cache interface.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Cache> |
CacheFactory.createCache(String name)
Returns the named cache, creating it as necessary.
|
static <T extends Cache> |
CacheFactory.createLocalCache(String name)
Returns the named local cache, creating it as necessary.
|
Modifier and Type | Method and Description |
---|---|
Cache |
CacheFactoryStrategy.createCache(String name)
Creates a new cache for the cache name specified.
|
Cache |
DefaultLocalCacheStrategy.createCache(String name) |
static Cache[] |
CacheFactory.getAllCaches()
Returns an array of all caches in the system.
|
Cache<K,V> |
CacheWrapper.getWrappedCache() |
Modifier and Type | Method and Description |
---|---|
static <K extends Serializable,V,C extends Collection<V> & Serializable> |
CacheUtil.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.
|
void |
CacheFactoryStrategy.destroyCache(Cache cache)
Destroys the supplied cache.
|
void |
DefaultLocalCacheStrategy.destroyCache(Cache cache) |
Lock |
CacheFactoryStrategy.getLock(Object key,
Cache cache)
Returns an existing lock on the specified key or creates a new one if none was found.
|
static Lock |
CacheFactory.getLock(Object key,
Cache cache)
Deprecated.
in favour of
getLock(K) . Will be removed in Openfire 5.0.0.
Returns an existing The supplied cache may or may not be used depending whether the server is running on cluster mode or not. When not running as part of a cluster then the lock will be unrelated to the cache and will only be visible in this JVM. |
Lock |
DefaultLocalCacheStrategy.getLock(Object key,
Cache cache) |
static <K extends Serializable,V extends Serializable> |
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> |
CacheUtil.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> |
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> |
CacheUtil.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> |
CacheUtil.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> |
CacheUtil.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> |
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> |
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.
|
Modifier and Type | Method and Description |
---|---|
void |
CacheFactoryStrategy.updateCacheStats(Map<String,Cache> caches)
Updates the statistics of the specified caches and publishes them into
a cache for statistics.
|
void |
DefaultLocalCacheStrategy.updateCacheStats(Map<String,Cache> caches) |
Constructor and Description |
---|
ComponentCacheWrapper(Cache<K,V> cache) |
Copyright © 2003–2019 Ignite Realtime. All rights reserved.