Top Description Constructors Methods
org.apache.derby.impl.services.cache

public Class ConcurrentCacheFactory

extends Object
implements CacheFactory
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.cache.CacheFactory
Imports
org.apache.derby.iapi.services.cache.CacheFactory, .CacheManager, .CacheableFactory

Factory class which creates cache manager instances based on the ConcurrentCache implementation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CacheManager

Returns:

a ConcurrentCache instance
newCacheManager
(CacheableFactory
factory which creates Cacheables
holderFactory
,
String
name of the cache
name
,
int
initial capacity of the cache (number of objects)
initialSize
,
int
maximum size of the cache (number of objects)
maximumSize
)

Implements org.apache.derby.iapi.services.cache.CacheFactory.newCacheManager.

Create a new ConcurrentCache instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConcurrentCacheFactoryback to summary
public ConcurrentCacheFactory()

Method Detail

newCacheManagerback to summary
public CacheManager newCacheManager(CacheableFactory holderFactory, String name, int initialSize, int maximumSize)

Implements org.apache.derby.iapi.services.cache.CacheFactory.newCacheManager.

Create a new ConcurrentCache instance.

Parameters
holderFactory:CacheableFactory

factory which creates Cacheables

name:String

name of the cache

initialSize:int

initial capacity of the cache (number of objects)

maximumSize:int

maximum size of the cache (number of objects)

Returns:CacheManager

a ConcurrentCache instance