|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.table.cache.AbstractCache
public abstract class AbstractCache
AbstractCache defines variables that determine the cache's store behaviour\ when caching values.
Field Summary | |
---|---|
protected int |
chunkSize
the chunk size |
static int |
DEFAULT_CHUNK_SIZE
defines the default chunck size |
static int |
DEFAULT_MAX_CACHE_SIZE
defines the default maximum cache size |
protected int |
maximumCacheSize
the maximum cache size |
Constructor Summary | |
---|---|
AbstractCache()
Creates an AbstractCache with a default chunk size and a default maximum cache size. |
|
AbstractCache(int chunkSize,
int maximumCacheSize)
Creates an AbstractCache with a chunk size and maximum cache size determined by chunkSize and maximumCacheSize. |
Method Summary | |
---|---|
void |
setChunkSize(int chunkSize)
Sets the current chunk size. |
void |
setMaximumCacheSize(int maximumCacheSize)
Sets the current maximum cache size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sciapp.table.cache.Cache |
---|
get, isValueCached, put, remove, removeAll |
Field Detail |
---|
protected int maximumCacheSize
protected int chunkSize
public static final int DEFAULT_MAX_CACHE_SIZE
public static final int DEFAULT_CHUNK_SIZE
Constructor Detail |
---|
public AbstractCache()
public AbstractCache(int chunkSize, int maximumCacheSize)
Method Detail |
---|
public void setChunkSize(int chunkSize)
chunkSize
- the cuunk size to assignpublic void setMaximumCacheSize(int maximumCacheSize)
maximumCacheSize
- the maximum cache size to assign
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |