Class WriterWithMetadata
- java.lang.Object
-
- org.apache.bookkeeper.bookie.storage.directentrylogger.WriterWithMetadata
-
class WriterWithMetadata extends java.lang.Object
WriterWithMetadata.
-
-
Constructor Summary
Constructors Constructor Description WriterWithMetadata(LogWriter writer, EntryLogMetadata metadata, io.netty.buffer.ByteBufAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) long
addEntry(long ledgerId, io.netty.buffer.ByteBuf entry)
(package private) void
finalizeAndClose()
(package private) void
flush()
(package private) int
logId()
(package private) boolean
shouldRoll(io.netty.buffer.ByteBuf entry, long rollThreshold)
-
-
-
Constructor Detail
-
WriterWithMetadata
WriterWithMetadata(LogWriter writer, EntryLogMetadata metadata, io.netty.buffer.ByteBufAllocator allocator) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
logId
int logId()
-
shouldRoll
boolean shouldRoll(io.netty.buffer.ByteBuf entry, long rollThreshold) throws java.io.IOException
- Throws:
java.io.IOException
-
addEntry
long addEntry(long ledgerId, io.netty.buffer.ByteBuf entry) throws java.io.IOException
- Throws:
java.io.IOException
-
flush
void flush() throws java.io.IOException
- Throws:
java.io.IOException
-
finalizeAndClose
void finalizeAndClose() throws java.io.IOException
- Throws:
java.io.IOException
-
-