Class FIXEDCacheImpl
- java.lang.Object
-
- com.sun.gjc.spi.base.datastructure.LRUCacheImpl
-
- com.sun.gjc.spi.base.datastructure.FIXEDCacheImpl
-
- All Implemented Interfaces:
Cache
public class FIXEDCacheImpl extends LRUCacheImpl
This is a FIXED size cache implementation.If the cache is full the statement is not added to the cache.
- Author:
- Shalini M
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.gjc.spi.base.datastructure.LRUCacheImpl
LRUCacheImpl.CacheEntry
-
-
Field Summary
-
Fields inherited from class com.sun.gjc.spi.base.datastructure.LRUCacheImpl
_logger
-
-
Constructor Summary
Constructors Constructor Description FIXEDCacheImpl(PoolInfo poolInfo, int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToCache(CacheObjectKey key, Object o, boolean force)
Add the key and entry value into the cache.-
Methods inherited from class com.sun.gjc.spi.base.datastructure.LRUCacheImpl
checkAndUpdateCache, clearCache, flushCache, getMaxSize, getSize, isSynchronized, purge, purge
-
-
-
-
Constructor Detail
-
FIXEDCacheImpl
public FIXEDCacheImpl(PoolInfo poolInfo, int maxSize)
-
-
Method Detail
-
addToCache
public void addToCache(CacheObjectKey key, Object o, boolean force)
Description copied from class:LRUCacheImpl
Add the key and entry value into the cache.- Specified by:
addToCache
in interfaceCache
- Overrides:
addToCache
in classLRUCacheImpl
- Parameters:
key
- key that contains the sql string and its type (PS/CS)o
- entry that is the wrapper of PreparedStatement or CallableStatementforce
- If the already existing key is to be overwritten
-
-