Class MultiPartitionLoggerThreadSafeBase
java.lang.Object
io.deephaven.enterprise.binlog.buffered.impl.MultiPartitionLoggerThreadSafeBase
- All Implemented Interfaces:
Logger,Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
PersistentQueryConfigurationLoggerImpl,PersistentQueryStateLoggerImpl,QueryUserAssignmentLoggerImpl,ResourceUtilizationLoggerImpl
@InternalUseOnly
public abstract class MultiPartitionLoggerThreadSafeBase
extends Object
implements Logger
The base class for 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
ConstructorsModifierConstructorDescriptionprotectedMultiPartitionLoggerThreadSafeBase(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
-
MultiPartitionLoggerThreadSafeBase
protected MultiPartitionLoggerThreadSafeBase(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
-