public class DefaultCacheFactory extends java.lang.Object implements CacheFactory
CacheFactory implementation that creates DefaultSimpleCache instances.
The caches are created with a capacity specified by the property {name}.maxItems.
For example, a cache named cache.ticketsCache would have a capacity specified
by the property cache.ticketsCache.maxItems| Constructor and Description |
|---|
DefaultCacheFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.repo.cache.SimpleCache |
createCache(java.lang.String cacheName)
Creates a fully distributed cache (when clustering is enabled and active).
|
org.alfresco.repo.cache.SimpleCache |
createInvalidateRemovalCache(java.lang.String cacheName)
Creates a local (as opposed to fully-distributed) cache that broadcasts invalidation messages
to its peers on other cluster members upon cache item removal.
|
org.alfresco.repo.cache.SimpleCache |
createLocalCache(java.lang.String cacheName)
Creates a "local" cache, i.e.
|
void |
setProperties(java.util.Properties properties)
Provide properties to parameterize cache creation.
|
public org.alfresco.repo.cache.SimpleCache createCache(java.lang.String cacheName)
CacheFactorycreateCache in interface CacheFactorypublic org.alfresco.repo.cache.SimpleCache createLocalCache(java.lang.String cacheName)
CacheFactorycreateLocalCache in interface CacheFactorypublic org.alfresco.repo.cache.SimpleCache createInvalidateRemovalCache(java.lang.String cacheName)
CacheFactoryCreates a local (as opposed to fully-distributed) cache that broadcasts invalidation messages to its peers on other cluster members upon cache item removal. Its peers then remove the corresponding cache item.
This cache does not replicate put(k,v) invocations.
createInvalidateRemovalCache in interface CacheFactorypublic void setProperties(java.util.Properties properties)
DefaultCacheFactory.createCache(String).
For example, for a cache named cache.ticketsCache the property cache.ticketsCache.maxItems
will determine the capacity of the cache.properties - Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.