45 std::optional<uint32_t> maxAttempts,
46 std::chrono::steady_clock::duration attemptsDelay = std::chrono::seconds{1}
54 virtual std::chrono::time_point<std::chrono::system_clock>
The interface of a scheduler for the extraction process.
Definition LedgerPublisherInterface.hpp:31
virtual bool publish(uint32_t seq, std::optional< uint32_t > maxAttempts, std::chrono::steady_clock::duration attemptsDelay=std::chrono::seconds{1})=0
Publish the ledger by its sequence number.
virtual std::uint32_t lastCloseAgeSeconds() const =0
Get time passed since last ledger close, in seconds.
virtual std::chrono::time_point< std::chrono::system_clock > getLastPublish() const =0
Get last publish time as a time point.
virtual std::uint32_t lastPublishAgeSeconds() const =0
Get time passed since last publish, in seconds.