org.apache.derby.impl.services.cache
Class ClockFactory
java.lang.Object
org.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheTrace
public static final java.lang.String CacheTrace
- Trace flag to display cache statistics
ClockFactory
public ClockFactory()
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 cacheinitialSize
- The number of initial holder objects that will be createdmaximumSize
- 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:
name
- The name of the cacheinitialSize
- The number of initial holder objects that will be createdmaximumSize
- The maximum total size of the objects that the cache will hold
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.