Class SftpFileJournal

java.lang.Object
io.leandev.appfuse.file.sftp.SftpFileJournal
All Implemented Interfaces:
FileJournal

public class SftpFileJournal extends Object implements FileJournal

SFTP 的 FileJournal 實作

採「一筆事件一個檔案」:

{basePath}/journal/{partition}/{epochMillis}-{uuid}

檔案內容為 JournalLineCodec 序列化的單行。readEntries 以 readDir 列出後逐一讀取。

連線參數與 SftpFileStorage 相同(共用同一 SshClient)。