K - keyの型V - valueの型public class CacheController<K,V>
extends java.lang.Object
| コンストラクタと説明 |
|---|
CacheController(CacheStore store,
boolean hasVersion,
int indexCount,
LoadingAdapter<K,V> adapter,
boolean useNegativeCacheOnSharedCache) |
CacheController(CacheStore store,
boolean hasVersion,
int indexCount,
LoadingAdapter<K,V> adapter,
boolean useNegativeCacheOnSharedCache,
boolean isStrictUpdate) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clearAll()
キャッシュを全てクリアする。
|
V |
get(K key)
指定のkeyのキャッシュの値を取得。
|
V |
getByIndex(int indexType,
java.lang.Object indexVal)
指定のindexTypeのindexValにてキャッシュの値を取得。
|
java.util.List<V> |
getListByIndex(int indexType,
java.lang.Object indexVal)
現時点でキャッシュに格納されているデータのみが対象。
|
CacheStore |
getStore()
このCacheControllerが管理するCacheStoreを取得。
|
void |
invalidateCacheStore() |
void |
notifyCreate(V value)
指定の値が作成されたことをCacheControllerに通知する。
|
void |
notifyDelete(V value)
指定の値が削除されたことをCacheControllerに通知する。
|
void |
notifyDeleteByKey(K key)
指定のkeyの値が削除されたことをCacheControllerに通知する。
|
void |
notifyInvalid(V value)
指定の値を無効にするよう通知する。
|
void |
notifyInvalidByKey(K key)
指定のkeyの値を無効にするよう通知する。
|
void |
notifyUpdate(V value)
指定の値が更新されたことをCacheControllerに通知する。
|
void |
refreshTransactionLocalStore(K key) |
java.util.List<V> |
removeByIndex(int indexType,
java.lang.Object indexVal) |
java.lang.String |
trace() |
public CacheController(CacheStore store, boolean hasVersion, int indexCount, LoadingAdapter<K,V> adapter, boolean useNegativeCacheOnSharedCache)
public CacheController(CacheStore store, boolean hasVersion, int indexCount, LoadingAdapter<K,V> adapter, boolean useNegativeCacheOnSharedCache, boolean isStrictUpdate)
public V get(K key)
key - public V getByIndex(int indexType, java.lang.Object indexVal)
indexType - indexVal - public CacheStore getStore()
public java.util.List<V> getListByIndex(int indexType, java.lang.Object indexVal)
indexType - indexVal - public java.util.List<V> removeByIndex(int indexType, java.lang.Object indexVal)
public void notifyCreate(V value)
value - public void notifyUpdate(V value)
value - public void notifyDeleteByKey(K key)
value - public void notifyInvalidByKey(K key)
value - public void notifyDelete(V value)
value - public void notifyInvalid(V value)
value - public void clearAll()
public void refreshTransactionLocalStore(K key)
public void invalidateCacheStore()
public java.lang.String trace()