Clio develop
The XRP Ledger API server.
|
The interface of a scheduler for the extraction process. More...
#include <LedgerPublisherInterface.hpp>
Public Member Functions | |
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::chrono::time_point< std::chrono::system_clock > | getLastPublish () const =0 |
Get last publish time as a time point. | |
virtual std::uint32_t | lastCloseAgeSeconds () const =0 |
Get time passed since last ledger close, in seconds. | |
virtual std::uint32_t | lastPublishAgeSeconds () const =0 |
Get time passed since last publish, in seconds. | |
The interface of a scheduler for the extraction process.
|
pure virtual |
Get last publish time as a time point.
Implemented in etl::impl::LedgerPublisher, and etlng::impl::LedgerPublisher.
|
pure virtual |
Get time passed since last ledger close, in seconds.
Implemented in etl::impl::LedgerPublisher, and etlng::impl::LedgerPublisher.
|
pure virtual |
Get time passed since last publish, in seconds.
Implemented in etl::impl::LedgerPublisher, and etlng::impl::LedgerPublisher.
|
pure virtual |
Publish the ledger by its sequence number.
seq | The sequence number of the ledger |
maxAttempts | The maximum number of attempts to publish the ledger; no limit if nullopt |
attemptsDelay | The delay between attempts |
Implemented in etl::impl::LedgerPublisher, and etlng::impl::LedgerPublisher.