public class ConfigDataCache extends AbstractMTAsynchronouslyRefreshedCache<ConfigDataCache.ConfigData>
config service
to asynchronously
refresh tenant config data.
Cluster-wide invalidation messages mean that we have to be very careful about only making
updates to caches when entries really change. However, the nature of the ConfigService
hierarchy makes it very difficult to do this in a deterministic manner without performing
write locks that run across tenants. By receiving asynchronous messages to refresh we no
longer have to rely on a cluster-aware cache.Modifier and Type | Class and Description |
---|---|
static class |
ConfigDataCache.ConfigData
Data containing all a tenant's required UI configuration
|
static class |
ConfigDataCache.ImmutableConfigData
Immutable version of
ConfigDataCache.ConfigData to ensure cast-iron safety of data
being put into the caches. |
Constructor and Description |
---|
ConfigDataCache() |
Modifier and Type | Method and Description |
---|---|
protected ConfigDataCache.ConfigData |
buildCache(String tenantId)
Build the cache entry for the specific tenant.
|
void |
setRepoXMLConfigService(RepoXMLConfigService repoXMLConfigService)
Set the config service.
|
afterPropertiesSet, forceInChangesForThisUncommittedTransaction, get, isUpToDate, refresh, setTenantService
afterCommit, afterRollback, beforeCommit, beforeCompletion, broadcastEvent, call, forceInChangesForThisUncommittedTransaction, get, getCacheId, init, isUpToDate, onRefreshableCacheEvent, refresh, register, setBeanName, setRegistry, setThreadPoolExecutor, toString, waitForBuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCacheId
public void setRepoXMLConfigService(RepoXMLConfigService repoXMLConfigService)
protected ConfigDataCache.ConfigData buildCache(String tenantId)
AbstractMTAsynchronouslyRefreshedCache
buildCache
in class AbstractMTAsynchronouslyRefreshedCache<ConfigDataCache.ConfigData>
Copyright © 2005–2017 Alfresco Software. All rights reserved.