Class AtomixLogStorage
java.lang.Object
io.camunda.zeebe.broker.logstreams.AtomixLogStorage
- All Implemented Interfaces:
RaftCommitListener,LogStorage
Implementation of
LogStorage for the Atomix RaftLog.
Note that this class cannot be made final because we currently spy on it in our tests. This should be changed when the log storage implementation is taken out of this module, at which point it can be made final.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.logstreams.storage.LogStorage
LogStorage.AppendListener, LogStorage.CommitListener -
Constructor Summary
ConstructorsConstructorDescriptionAtomixLogStorage(AtomixReaderFactory readerFactory, ZeebeLogAppender logAppender) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommitListener(LogStorage.CommitListener listener) voidappend(long lowestPosition, long highestPosition, BufferWriter bufferWriter, LogStorage.AppendListener listener) static AtomixLogStorageofPartition(AtomixReaderFactory readerFactory, ZeebeLogAppender appender) voidonCommit(long index) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.logstreams.storage.LogStorage
append
-
Constructor Details
-
AtomixLogStorage
-
-
Method Details
-
ofPartition
public static AtomixLogStorage ofPartition(AtomixReaderFactory readerFactory, ZeebeLogAppender appender) -
newReader
- Specified by:
newReaderin interfaceLogStorage
-
append
public void append(long lowestPosition, long highestPosition, BufferWriter bufferWriter, LogStorage.AppendListener listener) - Specified by:
appendin interfaceLogStorage
-
addCommitListener
- Specified by:
addCommitListenerin interfaceLogStorage
-
removeCommitListener
- Specified by:
removeCommitListenerin interfaceLogStorage
-
onCommit
public void onCommit(long index) - Specified by:
onCommitin interfaceRaftCommitListener
-