K
- type of the NearCacheRecord
keyspublic class NearCachePreloader<K> extends Object
Constructor and Description |
---|
NearCachePreloader(String nearCacheName,
NearCachePreloaderConfig preloaderConfig,
NearCacheStatsImpl nearCacheStats,
SerializationService serializationService) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
loadKeys(DataStructureAdapter<Object,?> adapter)
Loads the values via a stored key file into the supplied
DataStructureAdapter . |
void |
storeKeys(Iterator<K> iterator)
Stores the Near Cache keys from the supplied iterator.
|
public NearCachePreloader(String nearCacheName, NearCachePreloaderConfig preloaderConfig, NearCacheStatsImpl nearCacheStats, SerializationService serializationService)
public void destroy()
public void loadKeys(DataStructureAdapter<Object,?> adapter)
DataStructureAdapter
.adapter
- the DataStructureAdapter
to load the values frompublic void storeKeys(Iterator<K> iterator)
iterator
- Iterator
over the key set of a NearCacheRecordStore
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.