com.hazelcast.spring.mongodb
Class MongoMapStore

java.lang.Object
  extended by com.hazelcast.spring.mongodb.MongoMapStore
All Implemented Interfaces:
MapLoader, MapLoaderLifecycleSupport, MapStore

public class MongoMapStore
extends Object
implements MapStore, MapLoaderLifecycleSupport


Field Summary
protected static Logger logger
           
 
Constructor Summary
MongoMapStore()
           
 
Method Summary
 void delete(Object key)
           
 void deleteAll(Collection keys)
           
 void destroy()
           
 org.springframework.data.mongodb.core.MongoTemplate getMongoTemplate()
           
 void init(HazelcastInstance hazelcastInstance, Properties properties, String mapName)
           
 Object load(Object key)
           
 Map loadAll(Collection keys)
           
 Set loadAllKeys()
           
 void setMongoTemplate(org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
           
 void store(Object key, Object value)
           
 void storeAll(Map map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Logger logger
Constructor Detail

MongoMapStore

public MongoMapStore()
Method Detail

getMongoTemplate

public org.springframework.data.mongodb.core.MongoTemplate getMongoTemplate()

setMongoTemplate

public void setMongoTemplate(org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)

store

public void store(Object key,
                  Object value)
Specified by:
store in interface MapStore

storeAll

public void storeAll(Map map)
Specified by:
storeAll in interface MapStore

delete

public void delete(Object key)
Specified by:
delete in interface MapStore

deleteAll

public void deleteAll(Collection keys)
Specified by:
deleteAll in interface MapStore

load

public Object load(Object key)
Specified by:
load in interface MapLoader

loadAll

public Map loadAll(Collection keys)
Specified by:
loadAll in interface MapLoader

loadAllKeys

public Set loadAllKeys()
Specified by:
loadAllKeys in interface MapLoader

init

public void init(HazelcastInstance hazelcastInstance,
                 Properties properties,
                 String mapName)
Specified by:
init in interface MapLoaderLifecycleSupport

destroy

public void destroy()
Specified by:
destroy in interface MapLoaderLifecycleSupport


Copyright © 2013 Hazelcast, Inc.. All Rights Reserved.