Constructor and Description |
---|
LatencyTrackingMapStore(MapStore<K,V> delegate,
StoreLatencyPlugin plugin,
String mapName) |
Modifier and Type | Method and Description |
---|---|
void |
delete(K key)
Deletes the entry with a given key from the store.
|
void |
deleteAll(Collection<K> keys)
Deletes multiple entries from the store.
|
V |
load(K key)
Loads the value of a given key.
|
Map<K,V> |
loadAll(Collection<K> keys)
Loads given keys.
|
Iterable<K> |
loadAllKeys()
Loads all of the keys from the store.
|
void |
store(K key,
V value)
Stores the key-value pair.
|
void |
storeAll(Map<K,V> map)
Stores multiple entries.
|
public LatencyTrackingMapStore(MapStore<K,V> delegate, StoreLatencyPlugin plugin, String mapName)
public V load(K key)
MapLoader
public Map<K,V> loadAll(Collection<K> keys)
MapLoader
null
keys.
The returned Map should not contain any null
keys or values.
Loading other items than what provided in keys
prevents the map from being filled from the map store.
public Iterable<K> loadAllKeys()
MapLoader
Iterable
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.
The returned Iterable should not contain any null
keys.loadAllKeys
in interface MapLoader<K,V>
public void store(K key, V value)
MapStore
public void storeAll(Map<K,V> map)
MapStore
public void delete(K key)
MapStore
public void deleteAll(Collection<K> keys)
MapStore
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.