1#include <xrpld/app/main/NodeStoreScheduler.h>
3#include <xrpl/core/Job.h>
4#include <xrpl/core/JobQueue.h>
5#include <xrpl/nodestore/Scheduler.h>
6#include <xrpl/nodestore/Task.h>
20 if (!
jobQueue_.addJob(
JtWrite,
"NObjStore", [&task]() { task.performScheduledTask(); }))
A pool of threads to perform work.
NodeStoreScheduler(JobQueue &jobQueue)
void onBatchWrite(NodeStore::BatchWriteReport const &report) override
Reports the completion of a batch write Allows the scheduler to monitor the node store's performance.
void scheduleTask(NodeStore::Task &task) override
Schedules a task.
void onFetch(NodeStore::FetchReport const &report) override
Reports completion of a fetch Allows the scheduler to monitor the node store's performance.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Contains information about a batch write operation.
std::chrono::milliseconds elapsed
Contains information about a fetch operation.
FetchType const fetchType
std::chrono::milliseconds elapsed
Derived classes perform scheduled tasks.
virtual void performScheduledTask()=0
Performs the task.