static <K extends Serializable,V,C extends Collection<V> & Serializable> void |
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) |
|
static com.google.common.collect.Multimap<String,String> |
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) |
|
static com.google.common.collect.Multimap<String,String> |
ConsistencyChecks.generateReportForRoutingTableClientRoutes(Cache<String,ClientRoute> usersCache,
Cache<String,ClientRoute> anonymousUsersCache,
Collection<LocalClientSession> localClientRoutes,
Map<NodeID,Set<String>> routeOwnersByClusterNode) |
Verifies that usersCache, anonymousUsersCache, localRoutingTable.getClientRoutes and routeOwnersByClusterNode
of RoutingTableImpl are in a consistent state.
|
static com.google.common.collect.Multimap<String,String> |
ConsistencyChecks.generateReportForRoutingTableComponentRoutes(Cache<String,HashSet<NodeID>> componentsCache,
Collection<RoutableChannelHandler> localComponentRoutes,
HashMap<NodeID,Set<String>> componentsByClusterNode) |
Verifies that #componentsCache, #localRoutingTable#getComponentRoute and #componentsByClusterNode of
RoutingTableImpl are in a consistent state.
|
static com.google.common.collect.Multimap<String,String> |
ConsistencyChecks.generateReportForRoutingTableServerRoutes(Cache<DomainPair,NodeID> serversCache,
Collection<LocalOutgoingServerSession> localServerRoutes,
HashMap<NodeID,Set<DomainPair>> s2sDomainPairsByClusterNode) |
Verifies that #serversCache, #localRoutingTable#getServerRoutes and #s2sDomainPairsByClusterNode of
RoutingTableImpl are in a consistent state.
|
static com.google.common.collect.Multimap<String,String> |
ConsistencyChecks.generateReportForSessionManagerIncomingServerSessions(Cache<StreamID,IncomingServerSessionInfo> incomingServerSessionsCache,
Collection<LocalIncomingServerSession> localIncomingServerSessions,
Map<NodeID,Set<StreamID>> incomingServerSessionsByClusterNode) |
Verifies that #incomingServerSessionsCache, #localIncomingServerSessions and #incomingServerSessionsByClusterNode
of SessionManager are in a consistent state.
|
static com.google.common.collect.Multimap<String,String> |
ConsistencyChecks.generateReportForSessionManagerSessionInfos(Cache<String,ClientSessionInfo> sessionInfoCache,
Collection<ClientSession> localSessions,
Map<NodeID,Set<String>> sessionInfoKeysByClusterNode) |
Verifies that #sessionInfoCache, #localSessionInfos and #sessionInfoKeysByClusterNode
of SessionManager are in a consistent state.
|
static com.google.common.collect.Multimap<String,String> |
ConsistencyChecks.generateReportForUserSessions(Cache<String,HashSet<String>> usersSessionsCache,
Cache<String,ClientRoute> usersCache,
Cache<String,ClientRoute> anonymousUsersCache) |
|
static Lock |
CacheFactory.getLock(Object key,
Cache cache) |
Deprecated.
|
Lock |
CacheFactoryStrategy.getLock(Object key,
Cache cache) |
Returns an existing lock on the specified key or creates a new one if none was found.
|
Lock |
DefaultLocalCacheStrategy.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> void |
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> 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> void |
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> void |
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> void |
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> 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.
|