public interface CacheStoreManager extends GridCacheManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
configured() |
boolean |
configuredConvertBinary() |
CacheStore<?,?> |
configuredStore() |
boolean |
convertBinary() |
void |
forceFlush() |
void |
initialize(CacheStore<?,?> cfgStore,
Map<CacheStore,ThreadLocal> sesHolders)
Initialize store manager.
|
boolean |
isLocal() |
boolean |
isWriteBehind() |
boolean |
isWriteThrough() |
boolean |
isWriteToStoreFromDht() |
Object |
load(IgniteInternalTx tx,
KeyCacheObject key)
Loads data from persistent store.
|
boolean |
loadAll(IgniteInternalTx tx,
Collection<? extends KeyCacheObject> keys,
IgniteBiInClosure<KeyCacheObject,Object> vis)
Loads data from persistent store.
|
boolean |
loadCache(GridInClosure3<KeyCacheObject,Object,GridCacheVersion> vis,
Object[] args)
Loads data from persistent store.
|
void |
localStoreLoadAll(IgniteInternalTx tx,
Collection<? extends KeyCacheObject> keys,
GridInClosure3<KeyCacheObject,Object,GridCacheVersion> vis) |
boolean |
put(IgniteInternalTx tx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver)
Puts key-value pair into storage.
|
boolean |
putAll(IgniteInternalTx tx,
Map<? extends KeyCacheObject,IgniteBiTuple<? extends CacheObject,GridCacheVersion>> map)
Puts key-value pair into storage.
|
boolean |
remove(IgniteInternalTx tx,
KeyCacheObject key) |
boolean |
removeAll(IgniteInternalTx tx,
Collection<? extends KeyCacheObject> keys) |
void |
sessionEnd(IgniteInternalTx tx,
boolean commit,
boolean last,
boolean storeSessionEnded) |
CacheStore<Object,Object> |
store() |
void |
writeBehindCacheStoreSessionListenerStart()
Notifies cache store session listeners.
|
void |
writeBehindSessionEnd(boolean threwEx)
End session initiated by write-behind store.
|
void |
writeBehindSessionInit()
Start session initiated by write-behind store.
|
onDisconnected, onKernalStart, onKernalStop, printMemoryStats, start, stopvoid initialize(@Nullable
CacheStore<?,?> cfgStore,
Map<CacheStore,ThreadLocal> sesHolders)
throws IgniteCheckedException
cfgStore - Actual store.sesHolders - Session holders.IgniteCheckedException - If failed.boolean configured()
true If store configured.CacheStore<Object,Object> store()
CacheStore<?,?> configuredStore()
boolean isLocal()
true If local store is configured.boolean isWriteThrough()
True is write-through is enabled.boolean isWriteBehind()
True is write-behind is enabled.boolean isWriteToStoreFromDht()
@Nullable Object load(@Nullable IgniteInternalTx tx, KeyCacheObject key) throws IgniteCheckedException
tx - Cache transaction.key - Cache key.IgniteCheckedException - If data loading failed.boolean loadAll(@Nullable
IgniteInternalTx tx,
Collection<? extends KeyCacheObject> keys,
IgniteBiInClosure<KeyCacheObject,Object> vis)
throws IgniteCheckedException
tx - Cache transaction.keys - Cache keys.vis - Closure.True if there is a persistent storage.IgniteCheckedException - If data loading failed.void localStoreLoadAll(@Nullable
IgniteInternalTx tx,
Collection<? extends KeyCacheObject> keys,
GridInClosure3<KeyCacheObject,Object,GridCacheVersion> vis)
throws IgniteCheckedException
tx - Cache transaction.keys - Cache keys.vis - Closure to apply for loaded elements.IgniteCheckedException - If data loading failed.boolean loadCache(GridInClosure3<KeyCacheObject,Object,GridCacheVersion> vis, Object[] args) throws IgniteCheckedException
vis - Closer to cache loaded elements.args - User arguments.True if there is a persistent storage.IgniteCheckedException - If data loading failed.boolean put(@Nullable
IgniteInternalTx tx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver)
throws IgniteCheckedException
tx - Cache transaction.key - Key.val - Value.ver - Version.true If there is a persistent storage.IgniteCheckedException - If storage failed.boolean putAll(@Nullable
IgniteInternalTx tx,
Map<? extends KeyCacheObject,IgniteBiTuple<? extends CacheObject,GridCacheVersion>> map)
throws IgniteCheckedException
tx - Cache transaction.map - Map.True if there is a persistent storage.IgniteCheckedException - If storage failed.boolean remove(@Nullable
IgniteInternalTx tx,
KeyCacheObject key)
throws IgniteCheckedException
tx - Cache transaction.key - Key.True if there is a persistent storage.IgniteCheckedException - If storage failed.boolean removeAll(@Nullable
IgniteInternalTx tx,
Collection<? extends KeyCacheObject> keys)
throws IgniteCheckedException
tx - Cache transaction.keys - Key.True if there is a persistent storage.IgniteCheckedException - If storage failed.void sessionEnd(IgniteInternalTx tx, boolean commit, boolean last, boolean storeSessionEnded) throws IgniteCheckedException
tx - Transaction.commit - Commit.last - True if this is last store in transaction.storeSessionEnded - True if session for underlying store already ended.IgniteCheckedException - If failed.void writeBehindSessionInit()
throws IgniteCheckedException
IgniteCheckedException - If failed.void writeBehindCacheStoreSessionListenerStart()
throws IgniteCheckedException
IgniteCheckedException - If failed.void writeBehindSessionEnd(boolean threwEx)
throws IgniteCheckedException
threwEx - If exception was thrown.IgniteCheckedException - If failed.void forceFlush()
throws IgniteCheckedException
IgniteCheckedException - If failed.boolean convertBinary()
boolean configuredConvertBinary()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019