public class NullMapPersistence extends Object implements MapPersistence
| Constructor and Description |
|---|
NullMapPersistence() |
| 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.
|
void |
init(com.hazelcast.core.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 |
store(Object key,
Object value)
Stores the key-value pair.
|
void |
storeAll(Map map)
Stores multiple entries.
|
public void init(com.hazelcast.core.HazelcastInstance hazelcastInstance,
Properties properties,
String mapName)
init in interface com.hazelcast.core.MapLoaderLifecycleSupporthazelcastInstance - HazelcastInstance of this mapLoader.properties - Properties set for this mapStore. see MapStoreConfigmapName - name of the map.public void destroy()
destroy in interface com.hazelcast.core.MapLoaderLifecycleSupportpublic void store(Object key, Object value)
store in interface com.hazelcast.core.MapStorekey - key of the entry to storevalue - value of the entry to storepublic void storeAll(Map map)
storeAll in interface com.hazelcast.core.MapStoremap - map of entries to storepublic void delete(Object key)
delete in interface com.hazelcast.core.MapStorekey - key to delete from the store.public void deleteAll(Collection keys)
deleteAll in interface com.hazelcast.core.MapStorekeys - keys of the entries to delete.public Object load(Object key)
load in interface com.hazelcast.core.MapLoaderkey - public Map loadAll(Collection keys)
loadAll in interface com.hazelcast.core.MapLoaderkeys - keys of the values entries to loadpublic Set loadAllKeys()
loadAllKeys in interface com.hazelcast.core.MapLoaderCopyright © 2015. All rights reserved.