org.jafer.record
Class HashtableCacheFactory

java.lang.Object
  extended by org.jafer.record.HashtableCacheFactory
All Implemented Interfaces:
CacheFactory

public class HashtableCacheFactory
extends java.lang.Object
implements CacheFactory

This class returns a new instance of a HashtableCache from the configured settings


Field Summary
private  int dataCacheSize
          Stores a reference to data cache size
static int DEFAULT_DATACACHE_SIZE
          Stores a reference to DEFAULT_DATACACHE_SIZE of 512
 
Constructor Summary
HashtableCacheFactory()
          default constructor
HashtableCacheFactory(int dataCacheSize)
          constructor supplying cache size
 
Method Summary
 Cache getCache()
          This method should create a new cache
 int getDataCacheSize()
          Gets the DataCacheSize attribute
 void setDataCacheSize(int dataCacheSize)
          Sets the DataCacheSize attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DATACACHE_SIZE

public static final int DEFAULT_DATACACHE_SIZE
Stores a reference to DEFAULT_DATACACHE_SIZE of 512

See Also:
Constant Field Values

dataCacheSize

private int dataCacheSize
Stores a reference to data cache size

Constructor Detail

HashtableCacheFactory

public HashtableCacheFactory()
default constructor


HashtableCacheFactory

public HashtableCacheFactory(int dataCacheSize)
constructor supplying cache size

Parameters:
dataCacheSize - The size of the cache normally this would be 512
Method Detail

getCache

public Cache getCache()
Description copied from interface: CacheFactory
This method should create a new cache

Specified by:
getCache in interface CacheFactory
Returns:
The instance of the new record cache

getDataCacheSize

public int getDataCacheSize()
Gets the DataCacheSize attribute

Returns:
The DataCacheSize value

setDataCacheSize

public void setDataCacheSize(int dataCacheSize)
Sets the DataCacheSize attribute

Parameters:
dataCacheSize - The new DataCacheSize value