Uses of Interface
org.jivesoftware.util.cache.Cache
Packages that use Cache
Package
Description
Groups, which are used to organize users together.
Implementation of Multi-User Chat (XEP-0045).
Utility classes.
-
Uses of Cache in org.jivesoftware.openfire
Methods in org.jivesoftware.openfire that return Cache -
Uses of Cache in org.jivesoftware.openfire.group
Fields in org.jivesoftware.openfire.group declared as CacheModifier and TypeFieldDescriptionprotected static final Cache<String,
Serializable> AbstractGroupProvider.sharedGroupMetaCache
-
Uses of Cache in org.jivesoftware.openfire.muc.spi
Methods in org.jivesoftware.openfire.muc.spi that return Cache -
Uses of Cache in org.jivesoftware.util
Methods in org.jivesoftware.util that return Cache -
Uses of Cache in org.jivesoftware.util.cache
Classes in org.jivesoftware.util.cache that implement CacheModifier and TypeClassDescriptionclass
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 fromCache
.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.class
SerializingCache<K extends Serializable,
V extends Serializable> A Cache implementation that stores data in serialized form.Methods in org.jivesoftware.util.cache with type parameters of type CacheModifier and TypeMethodDescriptionstatic <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.static <T extends Cache>
TCacheFactory.createSerializingCache
(String name, Class keyClass, Class valueClass) Returns the serializing cache, creating it as necessary.Methods in org.jivesoftware.util.cache that return CacheModifier and TypeMethodDescriptionCacheFactoryStrategy.createCache
(String name) Creates a new cache for the cache name specified.DefaultLocalCacheStrategy.createCache
(String name) static Cache[]
CacheFactory.getAllCaches()
Returns an array of all caches in the system.SerializingCache.getDelegate()
CacheWrapper.getWrappedCache()
Methods in org.jivesoftware.util.cache with parameters of type CacheModifier and TypeMethodDescriptionstatic <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.void
CacheFactoryStrategy.destroyCache
(Cache cache) Destroys the supplied cache.void
DefaultLocalCacheStrategy.destroyCache
(Cache cache) ConsistencyChecks.generateReportForMucRooms
(Cache<String, MUCRoom> clusteredRoomCacheInput, Map<String, MUCRoom> localRoomsInput, Map<NodeID, Set<OccupantManager.Occupant>> occupantsByNodeInput, Map<OccupantManager.Occupant, NodeID> nodeByOccupantInput, Set<OccupantManager.Occupant> federatedOccupantsInput, String mucServiceName) ConsistencyChecks.generateReportForRoutingTableClientRoutes
(Cache<String, ClientRoute> usersCache, Collection<LocalClientSession> localClientRoutes, Map<NodeID, Set<String>> routeOwnersByClusterNode) Verifies that usersCache, #localClientRoutingTable and routeOwnersByClusterNode ofRoutingTableImpl
are in a consistent state.ConsistencyChecks.generateReportForRoutingTableComponentRoutes
(Cache<String, HashSet<NodeID>> componentsCache, Collection<RoutableChannelHandler> localComponentRoutes, HashMap<NodeID, Set<String>> componentsByClusterNode) Verifies that #componentsCache, #localComponentRoutingTable and #componentsByClusterNode ofRoutingTableImpl
are in a consistent state.ConsistencyChecks.generateReportForRoutingTableServerRoutes
(Cache<DomainPair, NodeID> serversCache, Collection<LocalOutgoingServerSession> localServerRoutes, HashMap<NodeID, Set<DomainPair>> s2sDomainPairsByClusterNode) Verifies that #serversCache, #localServerRoutingTable and #s2sDomainPairsByClusterNode ofRoutingTableImpl
are in a consistent state.ConsistencyChecks.generateReportForSessionManagerIncomingServerSessions
(Cache<StreamID, IncomingServerSessionInfo> incomingServerSessionsCache, Collection<LocalIncomingServerSession> localIncomingServerSessions, Map<NodeID, Set<StreamID>> incomingServerSessionsByClusterNode) Verifies that #incomingServerSessionsCache, #localIncomingServerSessions and #incomingServerSessionsByClusterNode ofSessionManager
are in a consistent state.ConsistencyChecks.generateReportForSessionManagerSessionInfos
(Cache<String, ClientSessionInfo> sessionInfoCache, Collection<ClientSession> localSessions, Map<NodeID, Set<String>> sessionInfoKeysByClusterNode) Verifies that #sessionInfoCache, #localSessionInfos and #sessionInfoKeysByClusterNode ofSessionManager
are in a consistent state.ConsistencyChecks.generateReportForUserSessions
(Cache<String, HashSet<String>> usersSessionsCache, Cache<String, ClientRoute> usersCache) 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>
booleanCacheUtil.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 CacheModifier and TypeMethodDescriptionvoid
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) Constructors in org.jivesoftware.util.cache with parameters of type Cache -
Uses of Cache in org.jivesoftware.util.cache.lock
Methods in org.jivesoftware.util.cache.lock with parameters of type Cache