com.hazelcast.map.impl.mapstore
Class AbstractMapDataStore<K,V>
java.lang.Object
com.hazelcast.map.impl.mapstore.AbstractMapDataStore<K,V>
- Type Parameters:
K
- key type for map data store.V
- value type for map data store.
- All Implemented Interfaces:
- MapDataStore<K,V>
- Direct Known Subclasses:
- WriteBehindStore, WriteThroughStore
public abstract class AbstractMapDataStore<K,V>
- extends Object
- implements MapDataStore<K,V>
Abstract map data store contains common functionality of map data stores.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hazelcast.map.impl.mapstore.MapDataStore |
add, addBackup, addTransient, clear, flush, flush, load, loadable, notFinishedOperationsCount, remove, removeBackup |
AbstractMapDataStore
protected AbstractMapDataStore(MapStoreWrapper store,
SerializationService serializationService)
loadAll
public Map loadAll(Collection keys)
- Specified by:
loadAll
in interface MapDataStore<K,V>
removeAll
public void removeAll(Collection keys)
- Directly removes keys from map store as in write-through mode.
It works same for write-behind and write-through stores.
- Specified by:
removeAll
in interface MapDataStore<K,V>
- Parameters:
keys
- to be removed.
toObject
protected Object toObject(Object obj)
toData
protected Data toData(Object obj)
getStore
public MapStoreWrapper getStore()
convertToObjectKeys
protected List<Object> convertToObjectKeys(Collection keys)
isPostProcessingMapStore
public boolean isPostProcessingMapStore()
- Specified by:
isPostProcessingMapStore
in interface MapDataStore<K,V>
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.