Class CachedOffHeapStorage
java.lang.Object
org.nustaq.reallive.server.storage.CachedOffHeapStorage
- All Implemented Interfaces:
RealLiveStreamActor,RecordStorage,SafeRealLiveStreamActor,RecordPersistance
Created by ruedi on 08/12/15.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoes not update lastmodified timestampvoid_saveMapping(ClusterTableRecordMapping mapping) protected voidbootstrapCache(RecordPersistance persisted, HeapRecordStorage onHeap) <T> voidforEachWithSpore(org.nustaq.kontraktor.Spore<Record, T> spore) 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, query
-
Constructor Details
-
CachedOffHeapStorage
-
-
Method Details
-
bootstrapCache
-
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
-
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
-
forEachWithSpore
- Specified by:
forEachWithSporein interfaceRealLiveStreamActor- Specified by:
forEachWithSporein interfaceRecordPersistance
-
_saveMapping
- Specified by:
_saveMappingin interfaceRecordPersistance
-
_loadMapping
- Specified by:
_loadMappingin interfaceRecordPersistance
-