org.sape.carbon.core.config.cache |
Contains supporting classes to implement a caching layer to speed up
configuration document retrievals. This package does not support the internal
value caching that is implemented by the format service. It is strictly supplied
to support the caching of full document files. In order for the cache to stay
synchronized with the backing store, the supplied implementation supports the
NodeListener functionality to be notified of file changes that happen within
the system.
|
Java Source File Name | Type | Comment |
ConfigurationCache.java | Interface | Interface for classes that store configuration objects. |
ConfigurationCacheFactory.java | Class | Factory class that returns an instance of ConfigurationCache. |
DoubleCheckConfigurationCache.java | Class |
This implementation uses the infamous double-check lock to minimize the
synchronization required. |
SynchronizedConfigurationCache.java | Class |
This implementation uses a synchronized hash map to store all configurations.
This is a bottleneck and may be a point of contention when many threads
required configurations simultaniously.
Configuration objects are cached lazily, i.e. |