21 Feed(asio::io_context & io_context,
22 std::filesystem::path feed_db_path,
23 std::filesystem::path archive_root,
24 std::int64_t outbox_retention_ms,
26 std::string default_chain_namespace =
"local");
34 asio::awaitable<bool>
runArchiveCycle(
int chain_id, std::size_t hot_window_days, std::int64_t now_ms);
47 asio::awaitable<storage::sqlite::WalCheckpointStats>
checkpointWal(
51 asio::strand<asio::io_context::executor_type> _strand;
52 std::unique_ptr<IFeedStore> _store;
asio::awaitable< void > maintainOutbox(std::int64_t now_ms)
Definition feed.cpp:35
Feed(const Feed &)=delete
asio::awaitable< storage::sqlite::WalCheckpointStats > checkpointWal(storage::sqlite::WalCheckpointMode mode) const override
Definition feed.cpp:73
asio::awaitable< void > setFeedCursor(std::int64_t seq)
Definition feed.cpp:67
StreamPage getStreamPage(const StreamQuery &query) const override
Definition feed.cpp:52
asio::awaitable< bool > runArchiveCycle(int chain_id, std::size_t hot_window_days, std::int64_t now_ms)
Definition feed.cpp:41
FeedPage getFeedPage(const FeedQuery &query) const override
Definition feed.cpp:47
Feed & operator=(const Feed &)=delete
asio::awaitable< void > applyChange(events::ChangeRecord row, std::int64_t now_ms)
Definition feed.cpp:29
std::int64_t getFeedCursor() const
Definition feed.cpp:62
std::int64_t minAvailableStreamSeq() const override
Definition feed.cpp:57
Feed(asio::io_context &io_context, std::filesystem::path feed_db_path, std::filesystem::path archive_root, std::int64_t outbox_retention_ms, int default_chain_id, std::string default_chain_namespace="local")
Definition feed.cpp:12
Definition feed_types.hpp:91
Definition wal_store.hpp:10
WalCheckpointMode
Definition wal.hpp:9
Definition event_projector.hpp:38
Definition feed_types.hpp:57
Definition feed_types.hpp:49
Definition feed_types.hpp:81
Definition feed_types.hpp:64