20#ifndef RIPPLE_NODESTORE_BATCHWRITER_H_INCLUDED
21#define RIPPLE_NODESTORE_BATCHWRITER_H_INCLUDED
23#include <xrpld/nodestore/Scheduler.h>
24#include <xrpld/nodestore/Task.h>
25#include <xrpld/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.