クラス TransactionLocalCacheStoreFactory.TransactionLocalCacheStore

java.lang.Object
org.iplass.mtp.impl.cache.store.builtin.TransactionLocalCacheStoreFactory.TransactionLocalCacheStore
すべての実装されたインタフェース:
CacheStore
含まれているクラス:
TransactionLocalCacheStoreFactory

public class TransactionLocalCacheStoreFactory.TransactionLocalCacheStore extends Object implements CacheStore
  • コンストラクタの詳細

    • TransactionLocalCacheStore

      TransactionLocalCacheStore(String namespace)
  • メソッドの詳細

    • getBackendCacheStore

      public CacheStore getBackendCacheStore()
    • reloadFromBackendStore

      public void reloadFromBackendStore(Object key)
    • put

      public CacheEntry put(CacheEntry entry, boolean isClean)
      定義:
      put インタフェース内 CacheStore
      パラメータ:
      entry -
      isClean - putするentryが更新されたものでない場合(他のNodeで読み込まれていても問題ない場合)ture
    • computeIfAbsent

      public CacheEntry computeIfAbsent(Object key, Function<Object,CacheEntry> mappingFunction)
      mappingFunctionはトランザクション内にてまだ読み込みしていない場合のみ、バックエンドストアで同期的にAtomicに処理される。 トランザクション内に当該Keyが読み込まれたあとは、トランザクションローカルで処理される。 トランザクションローカルのcomputeIfAbsentでバックエンドストアの値と変更がある場合、トランザクションコミット時にバックエンドストアの値が更新される。 バックエンドストアの値の更新が競合した場合は、バックエンドの値は無効化される。
      定義:
      computeIfAbsent インタフェース内 CacheStore
      パラメータ:
      key -
      mappingFunction -
      戻り値:
    • compute

      public CacheEntry compute(Object key, BiFunction<Object,CacheEntry,CacheEntry> remappingFunction)
      remappingFunctionはトランザクション内にてまだ読み込みしていない場合のみ、バックエンドストアで同期的にAtomicに処理される。 トランザクション内に当該Keyが読み込まれたあとは、トランザクションローカルで処理される。 トランザクションローカルのcomputeでバックエンドストアの値と変更がある場合、トランザクションコミット時にバックエンドストアの値が更新される。 バックエンドストアの値の更新が競合した場合は、バックエンドの値は無効化される。
      定義:
      compute インタフェース内 CacheStore
      パラメータ:
      key -
      remappingFunction -
      戻り値:
    • putIfAbsent

      public CacheEntry putIfAbsent(CacheEntry entry)
      定義:
      putIfAbsent インタフェース内 CacheStore
    • get

      public CacheEntry get(Object key)
      定義:
      get インタフェース内 CacheStore
    • remove

      public CacheEntry remove(Object key)
      定義:
      remove インタフェース内 CacheStore
    • remove

      public boolean remove(CacheEntry entry)
      定義:
      remove インタフェース内 CacheStore
    • replace

      public CacheEntry replace(CacheEntry entry)
      定義:
      replace インタフェース内 CacheStore
    • replace

      public boolean replace(CacheEntry oldEntry, CacheEntry newEntry)
      定義:
      replace インタフェース内 CacheStore
    • removeAll

      public void removeAll()
      定義:
      removeAll インタフェース内 CacheStore
    • keySet

      public List<Object> keySet()
      定義:
      keySet インタフェース内 CacheStore
    • getByIndex

      public CacheEntry getByIndex(int indexKey, Object indexValue)
      定義:
      getByIndex インタフェース内 CacheStore
    • getListByIndex

      public List<CacheEntry> getListByIndex(int indexKey, Object indexValue)
      定義:
      getListByIndex インタフェース内 CacheStore
    • getNamespace

      public String getNamespace()
      定義:
      getNamespace インタフェース内 CacheStore
    • addCacheEventListenner

      public void addCacheEventListenner(CacheEventListener listener)
      定義:
      addCacheEventListenner インタフェース内 CacheStore
    • removeCacheEventListenner

      public void removeCacheEventListenner(CacheEventListener listener)
      定義:
      removeCacheEventListenner インタフェース内 CacheStore
    • getListeners

      public List<CacheEventListener> getListeners()
      定義:
      getListeners インタフェース内 CacheStore
    • getFactory

      public CacheStoreFactory getFactory()
      定義:
      getFactory インタフェース内 CacheStore
    • removeByIndex

      public List<CacheEntry> removeByIndex(int indexKey, Object indexValue)
      定義:
      removeByIndex インタフェース内 CacheStore
    • getSize

      public int getSize()
      定義:
      getSize インタフェース内 CacheStore
    • trace

      public String trace()
      定義:
      trace インタフェース内 CacheStore
    • destroy

      public void destroy()
      定義:
      destroy インタフェース内 CacheStore