public class BinLog
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Class and Description |
|---|---|
static class |
BinLog.Builder |
static class |
BinLog.ReleaseableWriteMarshallable |
| Modifier and Type | Field and Description |
|---|---|
java.nio.file.Path |
path |
static java.lang.String |
TYPE |
static java.lang.String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Throwable |
cleanDirectory(java.io.File directory,
java.lang.Throwable accumulate) |
void |
finalize()
There is a race where we might not release a buffer, going to let finalization
catch it since it shouldn't happen to a lot of buffers.
|
BinLogOptions |
getBinLogOptions() |
void |
logRecord(BinLog.ReleaseableWriteMarshallable record) |
boolean |
offer(BinLog.ReleaseableWriteMarshallable record)
Offer a record to the log.
|
void |
put(BinLog.ReleaseableWriteMarshallable record)
Put a record into the log.
|
void |
run() |
void |
stop()
Stop the consumer thread that writes log records.
|
public final java.nio.file.Path path
public static final java.lang.String VERSION
public static final java.lang.String TYPE
public BinLogOptions getBinLogOptions()
public void stop()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic boolean offer(BinLog.ReleaseableWriteMarshallable record)
record - The record to write to the logpublic void put(BinLog.ReleaseableWriteMarshallable record) throws java.lang.InterruptedException
record - The record to write to the logjava.lang.InterruptedExceptionpublic void run()
run in interface java.lang.Runnablepublic void finalize()
finalize in class java.lang.Objectpublic void logRecord(BinLog.ReleaseableWriteMarshallable record)
public static java.lang.Throwable cleanDirectory(java.io.File directory,
java.lang.Throwable accumulate)
Copyright © 2009-2022 The Apache Software Foundation