public static class NullCommitTable.Writer extends Object implements CommitTable.Writer
| Constructor and Description |
|---|
Writer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommittedTransaction(long startTimestamp,
long commitTimestamp) |
boolean |
atomicAddCommittedTransaction(long startTimestamp,
long commitTimestamp)
Add commited transaction while checking if invalidated by other client
|
void |
clearWriteBuffer()
Allows to clean the write's current buffer.
|
void |
flush()
Flushes all the buffered events to the underlying datastore
|
void |
updateLowWatermark(long lowWatermark) |
public void addCommittedTransaction(long startTimestamp,
long commitTimestamp)
addCommittedTransaction in interface CommitTable.Writerpublic void updateLowWatermark(long lowWatermark)
throws IOException
updateLowWatermark in interface CommitTable.WriterIOExceptionpublic void clearWriteBuffer()
CommitTable.WriterclearWriteBuffer in interface CommitTable.Writerpublic boolean atomicAddCommittedTransaction(long startTimestamp,
long commitTimestamp)
throws IOException
CommitTable.WriteratomicAddCommittedTransaction in interface CommitTable.WriterIOExceptionpublic void flush()
throws IOException
CommitTable.Writerflush in interface CommitTable.WriterIOExceptionCopyright © 2011–2023 Apache Software Foundation. All rights reserved.