Class MapStoreAdapter<K,V> 
- Type Parameters:
- K- key of the map entry
- V- value of the map entry.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeletes the entry with a given key from the store.voiddeleteAll(Collection<K> keys) Deletes multiple entries from the store.Loads the value of a given key.loadAll(Collection<K> keys) Loads given keys.Loads all the keys from the store.voidStores the key-value pair.voidStores multiple entries.
- 
Constructor Details- 
MapStoreAdapterpublic MapStoreAdapter()
 
- 
- 
Method Details- 
deleteDeletes the entry with a given key from the store.If an exception is thrown the remove operation will fail. 
- 
storeStores the key-value pair.If an exception is thrown then the put operation will fail. 
- 
storeAllStores multiple entries.Implementation of this method can optimize the store operation by storing all entries in one database connection. storeAll() is used when writeDelaySeconds is positive (write-behind).If an exception is thrown, the entries will try to be stored one by one using the store() method. Note: on the retry phase only entries left in the map will be stored one-by-one. In this way a MapStore implementation can handle partial storeAll() cases when some entries were stored successfully before a failure happens. Entries removed from the map will be not passed to subsequent call to store() method anymore. 
- 
deleteAllDeletes multiple entries from the store.If an exception is thrown the entries will try to be deleted one by one using the delete() method. Note: on the retry phase only entries left in the keys will be deleted one-by-one. In this way a MapStore implementation can handle partial deleteAll() cases when some entries were deleted successfully before a failure happens. Entries removed from the keys will be not passed to subsequent call to delete() method anymore. The intended usage is to delete items from the provided collection as they are deleted from the store. 
- 
loadLoads the value of a given key. If distributed map doesn't contain the value for the given key then Hazelcast will call implementation's load (key) method to obtain the value. Implementation can use any means of loading the given key; such as an O/R mapping tool, simple SQL or reading a file etc.
- 
loadAllLoads given keys. This is batch load operation so that implementation can optimize the multiple loads.For any key in the input keys, there should be a single mapping in the resulting map. Also, the resulting map should not have any keys that are not part of the input keys. The given collection should not contain any nullkeys. The returned Map should not contain anynullkeys or values.Loading other items than what provided in keysprevents the map from being filled from the map store.
- 
loadAllKeysLoads all the keys from the store. The returnedIterablemay return the keys lazily by loading them in batches. TheIteratorof thisIterablemay implement theCloseableinterface in which case it will be closed once iteration is over. This is intended for releasing resources such as closing a JDBC result set.The returned Iterable should not contain any nullkeys.- Specified by:
- loadAllKeysin interface- MapLoader<K,- V> 
- Returns:
- all the keys. Keys inside the Iterable cannot be null.
 
 
-