Class ConcurrentCacheFactory

java.lang.Object
org.apache.derby.impl.services.cache.ConcurrentCacheFactory
All Implemented Interfaces:
CacheFactory

public class ConcurrentCacheFactory extends Object implements CacheFactory
Factory class which creates cache manager instances based on the ConcurrentCache implementation.
  • Constructor Details

    • ConcurrentCacheFactory

      public ConcurrentCacheFactory()
  • Method Details

    • newCacheManager

      public CacheManager newCacheManager(CacheableFactory holderFactory, String name, int initialSize, int maximumSize)
      Create a new ConcurrentCache instance.
      Specified by:
      newCacheManager in interface CacheFactory
      Parameters:
      holderFactory - factory which creates Cacheables
      name - name of the cache
      initialSize - initial capacity of the cache (number of objects)
      maximumSize - maximum size of the cache (number of objects)
      Returns:
      a ConcurrentCache instance