| Constructor and Description |
|---|
LatencyTrackingMapLoader(MapLoader<K,V> delegate,
StoreLatencyPlugin plugin,
String mapName) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public LatencyTrackingMapLoader(MapLoader<K,V> delegate, StoreLatencyPlugin plugin, String mapName)
public V load(K key)
MapLoaderpublic Map<K,V> loadAll(Collection<K> keys)
MapLoaderFor 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 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()
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.
The returned Iterable should not contain any null keys.
loadAllKeys in interface MapLoader<K,V>null.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.