public class EncryptedStorageWrapper extends Object implements RecordStorage
| Constructor and Description |
|---|
EncryptedStorageWrapper(java.util.function.Function<Record,Record> encryptionFun,
java.util.function.Function<Record,Record> decryptionFun,
RecordStorage wrapped) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
Record |
get(String key) |
StorageStats |
getStats() |
RecordStorage |
put(String key,
Record value) |
Record |
remove(String key) |
void |
resizeIfLoadFactorLarger(double loadFactor,
long maxGrow) |
long |
size() |
java.util.stream.Stream<Record> |
stream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, forEach, map, querypublic EncryptedStorageWrapper(java.util.function.Function<Record,Record> encryptionFun, java.util.function.Function<Record,Record> decryptionFun, RecordStorage wrapped)
public RecordStorage put(String key, Record value)
put in interface RecordStoragepublic Record get(String key)
get in interface RecordStoragepublic Record remove(String key)
remove in interface RecordStoragepublic long size()
size in interface RecordStoragepublic StorageStats getStats()
getStats in interface RecordStoragepublic java.util.stream.Stream<Record> stream()
stream in interface RecordStoragepublic void resizeIfLoadFactorLarger(double loadFactor,
long maxGrow)
resizeIfLoadFactorLarger in interface RecordStoragepublic <T> void forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore)
forEachWithSpore in interface RealLiveStreamActorCopyright © 2020. All rights reserved.