| org.apache.derby.iapi.services.cache.CacheFactory
All known Subclasses: org.apache.derby.impl.services.cache.ClockFactory,
CacheFactory | public interface CacheFactory (Code) | | A factory for handing out caches.
|
newCacheManager | public CacheManager newCacheManager(CacheableFactory holderFactory, String name, int initialSize, int maximumSize)(Code) | | Create a cache that uses the class represented by holderClass as
the holder class. This holderClass must implement Cacheable.
Parameters: holderFactory - The factory for the objects that are to be cached. Parameters: name - The name of the cache Parameters: initialSize - The number of initial holder objects that will be created Parameters: maximumSize - The maximum number of objects the cache will hold |
newSizedCacheManager | public CacheManager newSizedCacheManager(CacheableFactory holderFactory, String name, int initialSize, long maximumSize)(Code) | | Create a cache that uses the class represented by holderClass as
the holder class. This holderClass must implement Cacheable.
Parameters: holderFactory - The Class object representing the holder class. Parameters: name - The name of the cache Parameters: initialSize - The number of initial holder objects that will be created Parameters: maximumSize - The maximum total size of the objects that the cache will hold |
|
|