Class ConcurrentCacheFactory

  • All Implemented Interfaces:
    CacheFactory

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

      • ConcurrentCacheFactory

        public ConcurrentCacheFactory()
    • Method Detail

      • newCacheManager

        public CacheManager newCacheManager​(CacheableFactory holderFactory,
                                            java.lang.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