Class MultiPartitionLoggerThreadUnsafeBase
java.lang.Object
io.deephaven.enterprise.binlog.buffered.impl.MultiPartitionLoggerThreadUnsafeBase
- All Implemented Interfaces:
Logger,Closeable,Flushable,AutoCloseable
@InternalUseOnly
public abstract class MultiPartitionLoggerThreadUnsafeBase
extends Object
implements Logger
The base class for not-thread-safe, multi-partition buffered loggers. While this class is public, it is used as a
code generation target and not for public extension. See
package-info.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMultiPartitionLoggerThreadUnsafeBase(ByteBuffer buffer, MultiPartitionWriter multiPartitionWriter, int maxEntrySize) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidfinal voidclose()Flushesany buffered data to the output sink and then closes this logger.protected final voidprotected final voidcommitBuffers(int numRows) final voidflush()Flushes any buffered data to the output sink.protected final voidprotected final ByteBuffer
-
Constructor Details
-
MultiPartitionLoggerThreadUnsafeBase
protected MultiPartitionLoggerThreadUnsafeBase(ByteBuffer buffer, MultiPartitionWriter multiPartitionWriter, int maxEntrySize)
-
-
Method Details
-
flush
Description copied from interface:LoggerFlushes any buffered data to the output sink.- Specified by:
flushin interfaceFlushable- Specified by:
flushin interfaceLogger- Throws:
IOException- if an IO exception occurs
-
close
Description copied from interface:LoggerFlushesany buffered data to the output sink and then closes this logger.If this logger has already been closed then this method returns immediately.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceLogger- Throws:
IOException- if an IO exception occurs
-
partition
- Throws:
IOException
-
takeBuffer
- Throws:
IOException
-
abortBuffer
protected final void abortBuffer() -
commitBuffer
- Throws:
IOException
-
commitBuffers
- Throws:
IOException
-