K
- type of key to store.V
- type of value to store.public interface MapDataStore<K,V>
Modifier and Type | Method and Description |
---|---|
V |
add(K key,
V value,
long now) |
V |
addBackup(K key,
V value,
long now) |
void |
addTransient(K key,
long now) |
V |
flush(K key,
V value,
boolean backup)
Flushes the supplied key to the map-store.
|
void |
hardFlush()
Flushes write-behind-queue into map-store in calling thread.
|
boolean |
isPostProcessingMapStore() |
V |
load(K key) |
boolean |
loadable(K key) |
Map |
loadAll(Collection keys) |
int |
notFinishedOperationsCount() |
void |
remove(K key,
long now) |
void |
removeAll(Collection keys)
Removes keys from map store.
|
void |
removeBackup(K key,
long now) |
void |
reset()
Returns all associated resources of this map-data-store back to the initial state.
|
long |
softFlush()
Only marks this
MapDataStore as flush-able. |
void addTransient(K key, long now)
void remove(K key, long now)
void removeBackup(K key, long now)
void reset()
Map loadAll(Collection keys)
void removeAll(Collection keys)
Data
to object conversions of keys.keys
- to be removed.boolean loadable(K key)
int notFinishedOperationsCount()
boolean isPostProcessingMapStore()
long softFlush()
MapDataStore
as flush-able. Flush means storing entries from write-behind-queue into map-store
regardless of the scheduled store-time. Actual flushing is done by another thread than partition-operation thread
which runs StoreWorker
.MapFlushOperation
void hardFlush()
WriteBehindQueue
of this MapDataStore
should be in map-store regardless of the scheduled store-time.
The only call to this method is in node-shutdown.MapManagedService.shutdown(boolean)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.