org.apache.derby.impl.services.cache
Class ClockFactory

java.lang.Object
  extended byorg.apache.derby.impl.services.cache.ClockFactory
All Implemented Interfaces:
CacheFactory

public class ClockFactory
extends java.lang.Object
implements CacheFactory

Multithreading considerations: no need to be MT-safe, caller (module control) provides synchronization. Besides, this class is stateless.


Field Summary
static java.lang.String CacheTrace
          Trace flag to display cache statistics
 
Constructor Summary
ClockFactory()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CacheTrace

public static final java.lang.String CacheTrace
Trace flag to display cache statistics

Constructor Detail

ClockFactory

public ClockFactory()
Method Detail

newCacheManager

public CacheManager newCacheManager(CacheableFactory holderFactory,
                                    java.lang.String name,
                                    int initialSize,
                                    int maximumSize)
Description copied from interface: CacheFactory
Create a cache that uses the class represented by holderClass as the holder class. This holderClass must implement Cacheable.

Specified by:
newCacheManager in interface CacheFactory
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)
Description copied from interface: CacheFactory
Create a cache that uses the class represented by holderClass as the holder class. This holderClass must implement Cacheable.

Specified by:
newSizedCacheManager in interface CacheFactory
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 Mon 2007-06-04 09:58:47+0400, from revision ???

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