Top Description Methods
org.apache.derby.iapi.services.cache

public Interface CacheFactory

Known Direct Implementers
org.apache.derby.impl.services.cache.ConcurrentCacheFactory

A factory for handing out caches.

Method Summary

Modifier and TypeMethod and Description
public CacheManager

Returns:

a cache manager
newCacheManager
(CacheableFactory
The factory for the objects that are to be cached.
holderFactory
,
String
The name of the cache
name
,
int
The initial capacity of the cache
initialSize
,
int
The maximum number of objects the cache will hold
maximumSize
)

Create a cache that uses the class represented by holderClass as the holder class.

Method Detail

newCacheManagerback to summary
public 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:CacheableFactory

The factory for the objects that are to be cached.

name:String

The name of the cache

initialSize:int

The initial capacity of the cache

maximumSize:int

The maximum number of objects the cache will hold

Returns:CacheManager

a cache manager