public class JPAMapStore extends Object implements MapStore<Serializable,Object>
Constructor and Description |
---|
JPAMapStore() |
Modifier and Type | Method and Description |
---|---|
void |
delete(Serializable key)
Deletes the entry with a given key from the store.
|
void |
deleteAll(Collection keys)
Deletes multiple entries from the store.
|
org.springframework.data.repository.CrudRepository |
getCrudRepository() |
Object |
load(Serializable key)
Loads the value of a given key.
|
Map |
loadAll(Collection collection)
Loads given keys.
|
Set |
loadAllKeys()
Loads all of the keys from the store.
|
void |
setCrudRepository(org.springframework.data.repository.CrudRepository crudRepository) |
void |
store(Serializable key,
Object value)
Stores the key-value pair.
|
void |
storeAll(Map map)
Stores multiple entries.
|
public org.springframework.data.repository.CrudRepository getCrudRepository()
public void setCrudRepository(org.springframework.data.repository.CrudRepository crudRepository)
public void store(Serializable key, Object value)
MapStore
store
in interface MapStore<Serializable,Object>
key
- key of the entry to storevalue
- value of the entry to storepublic void storeAll(Map map)
MapStore
storeAll
in interface MapStore<Serializable,Object>
map
- map of entries to storepublic void delete(Serializable key)
MapStore
delete
in interface MapStore<Serializable,Object>
key
- key to delete from the store.public Object load(Serializable key)
MapLoader
load
in interface MapLoader<Serializable,Object>
public void deleteAll(Collection keys)
MapStore
deleteAll
in interface MapStore<Serializable,Object>
keys
- keys of the entries to delete.public Map loadAll(Collection collection)
MapLoader
loadAll
in interface MapLoader<Serializable,Object>
collection
- keys of the values entries to loadpublic Set loadAllKeys()
MapLoader
loadAllKeys
in interface MapLoader<Serializable,Object>
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.