ReadOnlyLocalLog
class ReadOnlyLocalLog<M>(rootPath: Path, codec: MessageCodec<M>, val epoch: Int, coroutineContext: CoroutineContext = Dispatchers.Default, logFileName: String = "LOG") : Log<M>
A read-only version of LocalLog that watches the log file for new messages written by another process (the primary cluster).
Constructors
Link copied to clipboard
constructor(rootPath: Path, codec: MessageCodec<M>, epoch: Int, coroutineContext: CoroutineContext = Dispatchers.Default, logFileName: String = "LOG")
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Reads records in the range [fromMsgId, toMsgId) (start-inclusive, end-exclusive). Returns a lazy sequence of decoded records in offset order. If toMsgId exceeds the latest submitted offset, reads up to the latest available record.
Link copied to clipboard