Class ConcurrentCacheFactory
- java.lang.Object
-
- org.apache.derby.impl.services.cache.ConcurrentCacheFactory
-
- All Implemented Interfaces:
CacheFactory
public class ConcurrentCacheFactory extends java.lang.Object implements CacheFactory
Factory class which creates cache manager instances based on theConcurrentCache
implementation.
-
-
Constructor Summary
Constructors Constructor Description ConcurrentCacheFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheManager
newCacheManager(CacheableFactory holderFactory, java.lang.String name, int initialSize, int maximumSize)
Create a newConcurrentCache
instance.
-
-
-
Method Detail
-
newCacheManager
public CacheManager newCacheManager(CacheableFactory holderFactory, java.lang.String name, int initialSize, int maximumSize)
Create a newConcurrentCache
instance.- Specified by:
newCacheManager
in interfaceCacheFactory
- Parameters:
holderFactory
- factory which createsCacheable
sname
- name of the cacheinitialSize
- initial capacity of the cache (number of objects)maximumSize
- maximum size of the cache (number of objects)- Returns:
- a
ConcurrentCache
instance
-
-