Class MemoryBlockCache
java.lang.Object
io.datarouter.filesystem.snapshot.cache.MemoryBlockCache
- All Implemented Interfaces:
BlockLoader
public class MemoryBlockCache extends Object implements BlockLoader
Thread-safe cache that can be shared between multiple readers.
TODO: support mixing multiple snapshots into the same cache
-
Constructor Summary
Constructors Constructor Description MemoryBlockCache(int maxSizeBytes, BlockLoader blockLoader) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.filesystem.snapshot.reader.block.BlockLoader
branch, leaf, root, value
-
Constructor Details
-
Method Details
-
leafRange
public io.datarouter.scanner.Scanner<LeafBlock> leafRange(LeafBlockRangeLoader.LeafBlockRange range)- Specified by:
leafRangein interfaceBlockLoader
-
get
- Specified by:
getin interfaceBlockLoader
-