|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.spring.mongodb.MongoMapStore
public class MongoMapStore
Field Summary | |
---|---|
protected static Logger |
logger
|
Constructor Summary | |
---|---|
MongoMapStore()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger logger
Constructor Detail |
---|
public MongoMapStore()
Method Detail |
---|
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)
MapStore
store
in interface MapStore
key
- key of the entry to storevalue
- value of the entry to storepublic void storeAll(Map map)
MapStore
storeAll
in interface MapStore
map
- map of entries to storepublic void delete(Object key)
MapStore
delete
in interface MapStore
key
- key to delete from the store.public void deleteAll(Collection keys)
MapStore
deleteAll
in interface MapStore
keys
- keys of the entries to delete.public Object load(Object key)
MapLoader
load
in interface MapLoader
public Map loadAll(Collection keys)
MapLoader
loadAll
in interface MapLoader
keys
- keys of the values entries to load
public Set loadAllKeys()
MapLoader
loadAllKeys
in interface MapLoader
public void init(HazelcastInstance hazelcastInstance, Properties properties, String mapName)
MapLoaderLifecycleSupport
init
in interface MapLoaderLifecycleSupport
hazelcastInstance
- HazelcastInstance of this mapLoader.properties
- Properties set for this mapStore. see MapStoreConfigmapName
- name of the map.public void destroy()
MapLoaderLifecycleSupport
destroy
in interface MapLoaderLifecycleSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |