Package org.apache.bookkeeper.bookie
Class FileInfoBackingCache
- java.lang.Object
-
- org.apache.bookkeeper.bookie.FileInfoBackingCache
-
class FileInfoBackingCache extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
FileInfoBackingCache.CachedFileInfo
(package private) static interface
FileInfoBackingCache.FileLoader
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
DEAD_REF
(package private) ConcurrentLongHashMap<FileInfoBackingCache.CachedFileInfo>
fileInfos
(package private) int
fileInfoVersionToWrite
(package private) FileInfoBackingCache.FileLoader
fileLoader
(package private) java.util.concurrent.locks.ReentrantReadWriteLock
lock
-
Constructor Summary
Constructors Constructor Description FileInfoBackingCache(FileInfoBackingCache.FileLoader fileLoader, int fileInfoVersionToWrite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
closeAllWithoutFlushing()
(package private) FileInfoBackingCache.CachedFileInfo
loadFileInfo(long ledgerId, byte[] masterKey)
-
-
-
Field Detail
-
DEAD_REF
static final int DEAD_REF
- See Also:
- Constant Field Values
-
lock
final java.util.concurrent.locks.ReentrantReadWriteLock lock
-
fileInfos
final ConcurrentLongHashMap<FileInfoBackingCache.CachedFileInfo> fileInfos
-
fileLoader
final FileInfoBackingCache.FileLoader fileLoader
-
fileInfoVersionToWrite
final int fileInfoVersionToWrite
-
-
Constructor Detail
-
FileInfoBackingCache
FileInfoBackingCache(FileInfoBackingCache.FileLoader fileLoader, int fileInfoVersionToWrite)
-
-
Method Detail
-
loadFileInfo
FileInfoBackingCache.CachedFileInfo loadFileInfo(long ledgerId, byte[] masterKey) throws java.io.IOException
- Throws:
java.io.IOException
-
closeAllWithoutFlushing
void closeAllWithoutFlushing() throws java.io.IOException
- Throws:
java.io.IOException
-
-