1#ifndef XRPL_NODESTORE_BATCHWRITER_H_INCLUDED 
    2#define XRPL_NODESTORE_BATCHWRITER_H_INCLUDED 
    4#include <xrpl/nodestore/Scheduler.h> 
    5#include <xrpl/nodestore/Task.h> 
    6#include <xrpl/nodestore/Types.h> 
Batch-writing assist logic.
 
void store(std::shared_ptr< NodeObject > const &object)
Store the object.
 
int getWriteLoad()
Get an estimate of the amount of writing I/O pending.
 
void performScheduledTask() override
Performs the task.
 
CondvarType mWriteCondition
 
~BatchWriter()
Destroy a batch writer.
 
Scheduling for asynchronous backend activity.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
This callback does the actual writing.
 
virtual void writeBatch(Batch const &batch)=0
 
Callback & operator=(Callback const &)=delete
 
virtual ~Callback()=default
 
Callback(Callback const &)=delete
 
Derived classes perform scheduled tasks.