public class MapStoreWrapper extends Object implements MapStore, MapLoaderLifecycleSupport
| Constructor and Description |
|---|
MapStoreWrapper(String mapName,
Object impl) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Object key)
Deletes the entry with a given key from the store.
|
void |
deleteAll(Collection keys)
Deletes multiple entries from the store.
|
void |
destroy()
Hazelcast will call this method before shutting down.
|
Object |
getImpl() |
MapStore |
getMapStore() |
void |
init(HazelcastInstance hazelcastInstance,
Properties properties,
String mapName)
Initializes this MapLoader implementation.
|
boolean |
isMapLoader() |
boolean |
isPostProcessingMapStore() |
Object |
load(Object key)
Loads the value of a given key.
|
Map |
loadAll(Collection keys)
Loads given keys.
|
Iterable<Object> |
loadAllKeys()
Loads all of the keys from the store.
|
void |
store(Object key,
Object value)
Stores the key-value pair.
|
void |
storeAll(Map map)
Stores multiple entries.
|
String |
toString() |
public MapStore getMapStore()
public void destroy()
MapLoaderLifecycleSupportdestroy in interface MapLoaderLifecycleSupportpublic void init(HazelcastInstance hazelcastInstance, Properties properties, String mapName)
MapLoaderLifecycleSupportinit in interface MapLoaderLifecycleSupporthazelcastInstance - HazelcastInstance of this mapLoader.properties - Properties set for this mapStore. see MapStoreConfigmapName - name of the map.public boolean isMapLoader()
public void delete(Object key)
MapStorepublic void store(Object key, Object value)
MapStorepublic void storeAll(Map map)
MapStorepublic void deleteAll(Collection keys)
MapStorepublic Iterable<Object> loadAllKeys()
MapLoaderIterable may return the keys lazily
by loading them in batches. The Iterator of this Iterable may implement the
Closeable interface in which case it will be closed once iteration is over.
This is intended for releasing resources such as closing a JDBC result set.loadAllKeys in interface MapLoaderpublic Object load(Object key)
MapLoaderpublic Map loadAll(Collection keys)
MapLoaderpublic Object getImpl()
public boolean isPostProcessingMapStore()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.