org.apache.derby.iapi.services.cache
Interface CacheFactory

All Known Implementing Classes:
ClockFactory, ConcurrentCacheFactory

public interface CacheFactory

A factory for handing out caches.


Method Summary
 CacheManager newCacheManager(CacheableFactory holderFactory, java.lang.String name, int initialSize, int maximumSize)
          Create a cache that uses the class represented by holderClass as the holder class.
 

Method Detail

newCacheManager

CacheManager newCacheManager(CacheableFactory holderFactory,
                             java.lang.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 number of initial holder objects that will be created
maximumSize - The maximum number of objects the cache will hold

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.