Interface CacheFactory

All Known Implementing Classes:
ConcurrentCacheFactory

public interface CacheFactory
A factory for handing out caches.
  • Method Summary

    Modifier and Type
    Method
    Description
    newCacheManager(CacheableFactory holderFactory, String name, int initialSize, int maximumSize)
    Create a cache that uses the class represented by holderClass as the holder class.
  • Method Details

    • newCacheManager

      CacheManager newCacheManager(CacheableFactory holderFactory, String name, int initialSize, int maximumSize)
      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.
      name - The name of the cache
      initialSize - The initial capacity of the cache
      maximumSize - The maximum number of objects the cache will hold