|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.map.impl.MapStoreWrapper
public class MapStoreWrapper
| Constructor Summary | |
|---|---|
MapStoreWrapper(String mapName,
Object impl)
|
|
| 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. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapStoreWrapper(String mapName,
Object impl)
| Method Detail |
|---|
public MapStore getMapStore()
public void destroy()
MapLoaderLifecycleSupport
destroy in interface MapLoaderLifecycleSupport
public void init(HazelcastInstance hazelcastInstance,
Properties properties,
String mapName)
MapLoaderLifecycleSupport
init 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)
MapStore
delete in interface MapStorekey - the key to delete from the store.
public void store(Object key,
Object value)
MapStore
store in interface MapStorekey - key of the entry to storevalue - value of the entry to storepublic void storeAll(Map map)
MapStore
storeAll in interface MapStoremap - map of entries to storepublic void deleteAll(Collection keys)
MapStore
deleteAll in interface MapStorekeys - the keys of the entries to delete.public 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)
MapLoader
load in interface MapLoaderpublic Map loadAll(Collection keys)
MapLoader
loadAll in interface MapLoaderkeys - keys of the values entries to load
public Object getImpl()
public boolean isPostProcessingMapStore()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||