1#include <xrpld/app/main/NodeStoreScheduler.h>
16 task.performScheduledTask();
A pool of threads to perform work.
void addLoadEvents(JobType t, int count, std::chrono::milliseconds elapsed)
Add multiple load events.
bool addJob(JobType type, std::string const &name, JobHandler &&jobHandler)
Adds a job to the JobQueue.
void onFetch(NodeStore::FetchReport const &report) override
Reports completion of a fetch Allows the scheduler to monitor the node store's performance.
void scheduleTask(NodeStore::Task &task) override
Schedules a task.
void onBatchWrite(NodeStore::BatchWriteReport const &report) override
Reports the completion of a batch write Allows the scheduler to monitor the node store's performance.
NodeStoreScheduler(JobQueue &jobQueue)
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.
std::chrono::milliseconds elapsed
FetchType const fetchType
Derived classes perform scheduled tasks.
virtual void performScheduledTask()=0
Performs the task.