public interface CacheStoreManager<K,V> extends GridCacheManager<K,V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
configured() |
boolean |
configuredConvertPortable() |
CacheStore<?,?> |
configuredStore() |
boolean |
convertPortable() |
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,
Object key,
Object val,
GridCacheVersion ver)
Puts key-value pair into storage.
|
boolean |
putAll(IgniteInternalTx tx,
Map<Object,IgniteBiTuple<Object,GridCacheVersion>> map)
Puts key-value pair into storage.
|
boolean |
remove(IgniteInternalTx tx,
Object key) |
boolean |
removeAll(IgniteInternalTx tx,
Collection<Object> keys) |
void |
sessionEnd(IgniteInternalTx tx,
boolean commit,
boolean last) |
CacheStore<Object,Object> |
store() |
void |
writeBehindSessionEnd(boolean threwEx)
End session initiated by write-behind store.
|
void |
writeBehindSessionInit()
End 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, Object key, Object 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<Object,IgniteBiTuple<Object,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, Object 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<Object> 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) throws IgniteCheckedException
tx - Transaction.commit - Commit.IgniteCheckedException - If failed.void writeBehindSessionInit()
void writeBehindSessionEnd(boolean threwEx)
throws IgniteCheckedException
threwEx - If exception was thrown.IgniteCheckedException - If failed.void forceFlush()
throws IgniteCheckedException
IgniteCheckedException - If failed.boolean convertPortable()
boolean configuredConvertPortable()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015