Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
etlng::impl::AmendmentBlockHandler Class Reference
Inheritance diagram for etlng::impl::AmendmentBlockHandler:
Collaboration diagram for etlng::impl::AmendmentBlockHandler:

Public Types

using ActionType = std::function<void()>

Public Member Functions

 AmendmentBlockHandler (util::async::AnyExecutionContext ctx, etl::SystemState &state, std::chrono::steady_clock::duration interval=std::chrono::seconds{1}, ActionType action=kDEFAULT_AMENDMENT_BLOCK_ACTION)
void stop () override
 Stop the block handler from repeatedly executing.
void notifyAmendmentBlocked () override
 The function to call once an amendment block has been discovered.

Static Public Attributes

static ActionType const kDEFAULT_AMENDMENT_BLOCK_ACTION

Member Function Documentation

◆ notifyAmendmentBlocked()

void etlng::impl::AmendmentBlockHandler::notifyAmendmentBlocked ( )
overridevirtual

The function to call once an amendment block has been discovered.

Implements etlng::AmendmentBlockHandlerInterface.

◆ stop()

void etlng::impl::AmendmentBlockHandler::stop ( )
overridevirtual

Stop the block handler from repeatedly executing.

Implements etlng::AmendmentBlockHandlerInterface.

Member Data Documentation

◆ kDEFAULT_AMENDMENT_BLOCK_ACTION

AmendmentBlockHandler::ActionType const etlng::impl::AmendmentBlockHandler::kDEFAULT_AMENDMENT_BLOCK_ACTION
static
Initial value:
= []() {
static util::Logger const log{"ETL"};
LOG(log.fatal()) << "Can't process new ledgers: The current ETL source is not compatible with the version of "
<< "the libxrpl Clio is currently using. Please upgrade Clio to a newer version.";
}
A simple thread-safe logger for the channel specified in the constructor.
Definition Logger.hpp:94
Pump fatal(SourceLocationType const &loc=CURRENT_SRC_LOCATION) const
Interface for logging at Severity::FTL severity.
Definition Logger.cpp:478

The documentation for this class was generated from the following files: