public class InMemoryResultSetCache extends InMemoryExpirableCache<ResultSetCacheKey,SqlResultSet> implements ResultSetCache
UNLIMITED| コンストラクタと説明 |
|---|
InMemoryResultSetCache()
デフォルトコンストラクタ。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected java.util.Map<ResultSetCacheKey,Expirable<SqlResultSet>> |
createCacheContainer(int max)
キャッシュの実体となるMapを生成する。
|
addToCache, clearCache, getFromCache, removeFromCache, setCacheSizeadd, addUnlimited, clear, getIfNotExpired, getNowDate, remove, setCacheListener, setSystemTimeProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addUnlimited, clear, getIfNotExpired, remove, setCacheListenerprotected java.util.Map<ResultSetCacheKey,Expirable<SqlResultSet>> createCacheContainer(int max)
LRUMapが使用される。
本メソッドをオーバライドすることで使用するMap実装を変更することができる。
createCacheContainer クラス内 InMemoryExpirableCache<ResultSetCacheKey,SqlResultSet>max - 最大上限件数