Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
etl::CorruptionDetector< CacheType > Class Template Reference

A helper to notify Clio operator about a corruption in the DB. More...

#include <CorruptionDetector.hpp>

Public Member Functions

 CorruptionDetector (SystemState &state, CacheType &cache)
 Construct a new Corruption Detector object.
 
void onCorruptionDetected ()
 Notify the operator about a corruption in the DB.
 

Detailed Description

template<typename CacheType>
class etl::CorruptionDetector< CacheType >

A helper to notify Clio operator about a corruption in the DB.

Template Parameters
CacheTypeThe type of the cache to disable on corruption

Constructor & Destructor Documentation

◆ CorruptionDetector()

template<typename CacheType >
etl::CorruptionDetector< CacheType >::CorruptionDetector ( SystemState & state,
CacheType & cache )
inline

Construct a new Corruption Detector object.

Parameters
stateThe system state
cacheThe cache to disable on corruption

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