public class FineGrainedLockIndexedConcurrentHashMapCacheStore extends SimpleCacheStoreBase
| コンストラクタと説明 |
|---|
FineGrainedLockIndexedConcurrentHashMapCacheStore(java.lang.String namespace,
CacheStoreFactory factory,
int initialCapacity,
TimeToLiveCalculator timeToLiveCalculator,
int size,
int indexCount,
java.util.List<FineGrainedLockIndexConfig> indexConfig) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
CacheEntry |
compute(java.lang.Object key,
java.util.function.BiFunction<java.lang.Object,CacheEntry,CacheEntry> remappingFunction)
remappingFunctionは同一keyに対しての処理は他の競合スレッドはブロックされ、アトミックに処理される。
|
CacheEntry |
computeIfAbsent(java.lang.Object key,
java.util.function.Function<java.lang.Object,CacheEntry> mappingFunction)
mappingFunctionはkeyが紐づいていない際に、厳密に一度のみの呼び出しとなる。
|
void |
destroy() |
CacheEntry |
get(java.lang.Object key) |
CacheEntry |
getByIndex(int indexKey,
java.lang.Object indexValue) |
java.util.List<CacheEntry> |
getListByIndex(int indexKey,
java.lang.Object indexValue) |
int |
getSize() |
java.util.List<java.lang.Object> |
keySet() |
CacheEntry |
put(CacheEntry entry,
boolean isClean) |
CacheEntry |
putIfAbsent(CacheEntry entry) |
boolean |
remove(CacheEntry entry) |
CacheEntry |
remove(java.lang.Object key) |
void |
removeAll() |
java.util.List<CacheEntry> |
removeByIndex(int indexKey,
java.lang.Object indexValue) |
protected void |
removeInvalidEntry() |
protected void |
removeNullEntry(NullKey key) |
CacheEntry |
replace(CacheEntry entry) |
boolean |
replace(CacheEntry oldEntry,
CacheEntry newEntry) |
java.lang.String |
trace() |
addCacheEventListenner, baseTrace, getFactory, getListeners, getNamespace, hasListener, margeVal, notifyInvalidated, notifyPut, notifyRemoved, notifyUpdated, removeCacheEventListenner, subtractValclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeIfAbsentWithAutoReloadpublic FineGrainedLockIndexedConcurrentHashMapCacheStore(java.lang.String namespace,
CacheStoreFactory factory,
int initialCapacity,
TimeToLiveCalculator timeToLiveCalculator,
int size,
int indexCount,
java.util.List<FineGrainedLockIndexConfig> indexConfig)
protected void removeInvalidEntry()
removeInvalidEntry クラス内 SimpleCacheStoreBasepublic CacheEntry get(java.lang.Object key)
public CacheEntry put(CacheEntry entry, boolean isClean)
isClean - putするentryが更新されたものでない場合(他のNodeで読み込まれていても問題ない場合)turepublic CacheEntry remove(java.lang.Object key)
public void removeAll()
public CacheEntry putIfAbsent(CacheEntry entry)
public CacheEntry computeIfAbsent(java.lang.Object key, java.util.function.Function<java.lang.Object,CacheEntry> mappingFunction)
public CacheEntry compute(java.lang.Object key, java.util.function.BiFunction<java.lang.Object,CacheEntry,CacheEntry> remappingFunction)
public boolean remove(CacheEntry entry)
public CacheEntry replace(CacheEntry entry)
public boolean replace(CacheEntry oldEntry, CacheEntry newEntry)
public java.util.List<java.lang.Object> keySet()
public CacheEntry getByIndex(int indexKey, java.lang.Object indexValue)
public java.util.List<CacheEntry> getListByIndex(int indexKey, java.lang.Object indexValue)
public java.util.List<CacheEntry> removeByIndex(int indexKey, java.lang.Object indexValue)
protected void removeNullEntry(NullKey key)
removeNullEntry クラス内 SimpleCacheStoreBasepublic int getSize()
public java.lang.String trace()
public void destroy()