Class HeapRecordStorage
java.lang.Object
org.nustaq.reallive.server.storage.HeapRecordStorage
- All Implemented Interfaces:
RealLiveStreamActor,RecordStorage,SafeRealLiveStreamActor,RecordPersistance
Created by ruedi on 03/08/15.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoes not update lastmodified timestamp<T> voidforEachWithSpore(org.nustaq.kontraktor.Spore<Record, T> spore) getMap()getStats()voidresizeIfLoadFactorLarger(double loadFactor, long maxGrowBytes) longsize()stream()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nustaq.reallive.api.RealLiveStreamActor
forEach, forEach, listByQuery, map, queryMethods inherited from interface org.nustaq.reallive.server.storage.RecordPersistance
_loadMapping, _saveMapping
-
Constructor Details
-
HeapRecordStorage
public HeapRecordStorage() -
HeapRecordStorage
-
-
Method Details
-
put
- Specified by:
putin interfaceRecordPersistance- Specified by:
putin interfaceRecordStorage
-
_rawPut
Description copied from interface:RecordPersistancedoes not update lastmodified timestamp- Specified by:
_rawPutin interfaceRecordPersistance- Returns:
-
get
- Specified by:
getin interfaceRecordStorage
-
remove
- Specified by:
removein interfaceRecordPersistance- Specified by:
removein interfaceRecordStorage
-
size
public long size()- Specified by:
sizein interfaceRecordStorage
-
forEachWithSpore
- Specified by:
forEachWithSporein interfaceRealLiveStreamActor- Specified by:
forEachWithSporein interfaceRecordPersistance
-
getMap
-
getStats
- Specified by:
getStatsin interfaceRecordPersistance- Specified by:
getStatsin interfaceRecordStorage
-
stream
- Specified by:
streamin interfaceRecordStorage
-
resizeIfLoadFactorLarger
public void resizeIfLoadFactorLarger(double loadFactor, long maxGrowBytes) - Specified by:
resizeIfLoadFactorLargerin interfaceRecordPersistance- Specified by:
resizeIfLoadFactorLargerin interfaceRecordStorage
-
getRemoveLog
- Specified by:
getRemoveLogin interfaceRecordPersistance
-