public class HeapRecordStorage extends Object implements RecordStorage
| Constructor and Description |
|---|
HeapRecordStorage() |
HeapRecordStorage(Map<Object,Record> map) |
| Modifier and Type | Method and Description |
|---|---|
RecordStorage |
_put(String key,
Record value) |
<T> void |
forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
Record |
get(String key) |
Map<Object,Record> |
getMap() |
StorageStats |
getStats() |
RecordStorage |
put(String key,
Record value) |
Record |
remove(String key) |
void |
resizeIfLoadFactorLarger(double loadFactor,
long maxGrowBytes) |
long |
size() |
java.util.stream.Stream<Record> |
stream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, forEach, map, querypublic RecordStorage put(String key, Record value)
put in interface RecordStoragepublic RecordStorage _put(String key, Record value)
public Record get(String key)
get in interface RecordStoragepublic Record remove(String key)
remove in interface RecordStoragepublic long size()
size in interface RecordStoragepublic <T> void forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore)
forEachWithSpore in interface RealLiveStreamActorpublic StorageStats getStats()
getStats in interface RecordStoragepublic java.util.stream.Stream<Record> stream()
stream in interface RecordStoragepublic void resizeIfLoadFactorLarger(double loadFactor,
long maxGrowBytes)
resizeIfLoadFactorLarger in interface RecordStorageCopyright © 2019. All rights reserved.