クラス TransactionLocalCacheStoreFactory.TransactionLocalCacheStore
java.lang.Object
org.iplass.mtp.impl.cache.store.builtin.TransactionLocalCacheStoreFactory.TransactionLocalCacheStore
- すべての実装されたインタフェース:
CacheStore
- 含まれているクラス:
TransactionLocalCacheStoreFactory
public class TransactionLocalCacheStoreFactory.TransactionLocalCacheStore
extends Object
implements CacheStore
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明voidaddCacheEventListenner(CacheEventListener listener) compute(Object key, BiFunction<Object, CacheEntry, CacheEntry> remappingFunction) remappingFunctionはトランザクション内にてまだ読み込みしていない場合のみ、バックエンドストアで同期的にAtomicに処理される。computeIfAbsent(Object key, Function<Object, CacheEntry> mappingFunction) mappingFunctionはトランザクション内にてまだ読み込みしていない場合のみ、バックエンドストアで同期的にAtomicに処理される。voiddestroy()getByIndex(int indexKey, Object indexValue) getListByIndex(int indexKey, Object indexValue) intgetSize()keySet()put(CacheEntry entry, boolean isClean) putIfAbsent(CacheEntry entry) voidbooleanremove(CacheEntry entry) voidremoveByIndex(int indexKey, Object indexValue) voidremoveCacheEventListenner(CacheEventListener listener) replace(CacheEntry entry) booleanreplace(CacheEntry oldEntry, CacheEntry newEntry) trace()クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースから継承されたメソッド org.iplass.mtp.impl.cache.store.CacheStore
computeIfAbsentWithAutoReload
-
コンストラクタの詳細
-
TransactionLocalCacheStore
TransactionLocalCacheStore(String namespace)
-
-
メソッドの詳細
-
getBackendCacheStore
-
reloadFromBackendStore
-
put
- 定義:
putインタフェース内CacheStore- パラメータ:
entry-isClean- putするentryが更新されたものでない場合(他のNodeで読み込まれていても問題ない場合)ture
-
computeIfAbsent
mappingFunctionはトランザクション内にてまだ読み込みしていない場合のみ、バックエンドストアで同期的にAtomicに処理される。 トランザクション内に当該Keyが読み込まれたあとは、トランザクションローカルで処理される。 トランザクションローカルのcomputeIfAbsentでバックエンドストアの値と変更がある場合、トランザクションコミット時にバックエンドストアの値が更新される。 バックエンドストアの値の更新が競合した場合は、バックエンドの値は無効化される。- 定義:
computeIfAbsentインタフェース内CacheStore- パラメータ:
key-mappingFunction-- 戻り値:
-
compute
remappingFunctionはトランザクション内にてまだ読み込みしていない場合のみ、バックエンドストアで同期的にAtomicに処理される。 トランザクション内に当該Keyが読み込まれたあとは、トランザクションローカルで処理される。 トランザクションローカルのcomputeでバックエンドストアの値と変更がある場合、トランザクションコミット時にバックエンドストアの値が更新される。 バックエンドストアの値の更新が競合した場合は、バックエンドの値は無効化される。- 定義:
computeインタフェース内CacheStore- パラメータ:
key-remappingFunction-- 戻り値:
-
putIfAbsent
- 定義:
putIfAbsentインタフェース内CacheStore
-
get
- 定義:
getインタフェース内CacheStore
-
remove
- 定義:
removeインタフェース内CacheStore
-
remove
- 定義:
removeインタフェース内CacheStore
-
replace
- 定義:
replaceインタフェース内CacheStore
-
replace
- 定義:
replaceインタフェース内CacheStore
-
removeAll
public void removeAll()- 定義:
removeAllインタフェース内CacheStore
-
keySet
- 定義:
keySetインタフェース内CacheStore
-
getByIndex
- 定義:
getByIndexインタフェース内CacheStore
-
getListByIndex
- 定義:
getListByIndexインタフェース内CacheStore
-
getNamespace
- 定義:
getNamespaceインタフェース内CacheStore
-
addCacheEventListenner
- 定義:
addCacheEventListennerインタフェース内CacheStore
-
removeCacheEventListenner
- 定義:
removeCacheEventListennerインタフェース内CacheStore
-
getListeners
- 定義:
getListenersインタフェース内CacheStore
-
getFactory
- 定義:
getFactoryインタフェース内CacheStore
-
removeByIndex
- 定義:
removeByIndexインタフェース内CacheStore
-
getSize
public int getSize()- 定義:
getSizeインタフェース内CacheStore
-
trace
- 定義:
traceインタフェース内CacheStore
-
destroy
public void destroy()- 定義:
destroyインタフェース内CacheStore
-