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

All Known Implementing Classes:
ClockFactory

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.
 CacheManager newSizedCacheManager(CacheableFactory holderFactory, java.lang.String name, int initialSize, long maximumSize)
          Create a cache that uses the class represented by holderClass as the holder class.
 

Method Detail

newCacheManager

public 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

newSizedCacheManager

public CacheManager newSizedCacheManager(CacheableFactory holderFactory,
                                         java.lang.String name,
                                         int initialSize,
                                         long maximumSize)
Create a cache that uses the class represented by holderClass as the holder class. This holderClass must implement Cacheable.

Parameters:
holderFactory - The Class object representing the holder class.
name - The name of the cache
initialSize - The number of initial holder objects that will be created
maximumSize - The maximum total size of the objects that the cache will hold

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.