Class EncryptedStorageWrapper
java.lang.Object
org.nustaq.reallive.server.storage.EncryptedStorageWrapper
- All Implemented Interfaces:
RealLiveStreamActor,RecordStorage,SafeRealLiveStreamActor,RecordPersistance
public class EncryptedStorageWrapper extends java.lang.Object implements RecordStorage
-
Constructor Summary
Constructors Constructor Description EncryptedStorageWrapper(java.util.function.Function<Record,Record> encryptionFun, java.util.function.Function<Record,Record> decryptionFun, RecordStorage wrapped) -
Method Summary
Modifier and Type Method Description <T> voidforEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore)Recordget(java.lang.String key)StorageStatsgetStats()RecordStorageput(java.lang.String key, Record value)Recordremove(java.lang.String key)voidresizeIfLoadFactorLarger(double loadFactor, long maxGrow)longsize()java.util.stream.Stream<Record>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, map, queryMethods inherited from interface org.nustaq.reallive.server.storage.RecordPersistance
_loadMapping, _put, _saveMapping
-
Constructor Details
-
EncryptedStorageWrapper
public EncryptedStorageWrapper(java.util.function.Function<Record,Record> encryptionFun, java.util.function.Function<Record,Record> decryptionFun, RecordStorage wrapped)
-
-
Method Details
-
put
- Specified by:
putin interfaceRecordPersistance- Specified by:
putin interfaceRecordStorage
-
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 maxGrow)- Specified by:
resizeIfLoadFactorLargerin interfaceRecordPersistance- Specified by:
resizeIfLoadFactorLargerin interfaceRecordStorage
-
forEachWithSpore
- Specified by:
forEachWithSporein interfaceRealLiveStreamActor- Specified by:
forEachWithSporein interfaceRecordPersistance
-