20 #ifndef RIPPLE_NODESTORE_SCHEDULER_H_INCLUDED
21 #define RIPPLE_NODESTORE_SCHEDULER_H_INCLUDED
23 #include <ripple/nodestore/Task.h>
virtual ~Scheduler()=default
Contains information about a fetch operation.
BatchWriteReport()=default
FetchReport(FetchType fetchType_)
virtual void scheduleTask(Task &task)=0
Schedules a task.
Derived classes perform scheduled tasks.
virtual void onFetch(FetchReport const &report)=0
Reports completion of a fetch Allows the scheduler to monitor the node store's performance.
Scheduling for asynchronous backend activity.
Contains information about a batch write operation.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::chrono::milliseconds elapsed
std::chrono::milliseconds elapsed
virtual void onBatchWrite(BatchWriteReport const &report)=0
Reports the completion of a batch write Allows the scheduler to monitor the node store's performance.
const FetchType fetchType