public class MongoMapStore extends Object implements MapStore, MapLoaderLifecycleSupport
| Constructor and Description |
|---|
MongoMapStore() |
| 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.
|
org.springframework.data.mongodb.core.MongoTemplate |
getMongoTemplate() |
void |
init(HazelcastInstance hazelcastInstance,
Properties properties,
String mapName)
Initializes this MapLoader implementation.
|
Object |
load(Object key)
Loads the value of a given key.
|
Map |
loadAll(Collection keys)
Loads given keys.
|
Set |
loadAllKeys()
Loads all of the keys from the store.
|
void |
setMongoTemplate(org.springframework.data.mongodb.core.MongoTemplate mongoTemplate) |
void |
store(Object key,
Object value)
Stores the key-value pair.
|
void |
storeAll(Map map)
Stores multiple entries.
|
protected static final Logger LOGGER
public org.springframework.data.mongodb.core.MongoTemplate getMongoTemplate()
public void setMongoTemplate(org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
public void store(Object key, Object value)
MapStorepublic void storeAll(Map map)
MapStorepublic void delete(Object key)
MapStorepublic void deleteAll(Collection keys)
MapStorepublic Object load(Object key)
MapLoaderpublic Map loadAll(Collection keys)
MapLoaderpublic Set loadAllKeys()
MapLoaderloadAllKeys in interface MapLoaderpublic 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 void destroy()
MapLoaderLifecycleSupportdestroy in interface MapLoaderLifecycleSupportCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.