|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- type of key to store.V
- type of value to store.public interface MapDataStore<K,V>
Map data stores general contract. Provides an extra abstraction layer over write-through and write-behind map-store implementations.
Method Summary | |
---|---|
V |
add(K key,
V value,
long now)
|
V |
addBackup(K key,
V value,
long now)
|
void |
addTransient(K key,
long now)
|
void |
clear()
Clears resources of this map-data-store. |
Collection<Data> |
flush()
Flushes all keys in this map-store. |
V |
flush(K key,
V value,
long now,
boolean backup)
Flushes the supplied key to the map-store. |
boolean |
isPostProcessingMapStore()
|
V |
load(K key)
|
boolean |
loadable(K key,
long lastUpdateTime,
long now)
|
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)
|
Method Detail |
---|
V add(K key, V value, long now)
void addTransient(K key, long now)
V addBackup(K key, V value, long now)
void remove(K key, long now)
void removeBackup(K key, long now)
void clear()
V load(K key)
Map loadAll(Collection keys)
void removeAll(Collection keys)
Data
to object conversions of keys.
keys
- to be removed.boolean loadable(K key, long lastUpdateTime, long now)
int notFinishedOperationsCount()
boolean isPostProcessingMapStore()
Collection<Data> flush()
Data
keys list.V flush(K key, V value, long now, boolean backup)
key
- key to be flushedvalue
- value to be flushednow
- now in millisbackup
- true
calling this method for backup partition, false
for owner partition.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |