rippled
Loading...
Searching...
No Matches
DummyScheduler.h
1#ifndef XRPL_NODESTORE_DUMMYSCHEDULER_H_INCLUDED
2#define XRPL_NODESTORE_DUMMYSCHEDULER_H_INCLUDED
3
4#include <xrpl/nodestore/Scheduler.h>
5
6namespace ripple {
7namespace NodeStore {
8
11{
12public:
13 DummyScheduler() = default;
14 ~DummyScheduler() = default;
15 void
16 scheduleTask(Task& task) override;
17 void
18 onFetch(FetchReport const& report) override;
19 void
20 onBatchWrite(BatchWriteReport const& report) override;
21};
22
23} // namespace NodeStore
24} // namespace ripple
25
26#endif
Simple NodeStore Scheduler that just peforms the tasks synchronously.
void scheduleTask(Task &task) override
Schedules a task.
void onFetch(FetchReport const &report) override
Reports completion of a fetch Allows the scheduler to monitor the node store's performance.
void onBatchWrite(BatchWriteReport const &report) override
Reports the completion of a batch write Allows the scheduler to monitor the node store's performance.
Scheduling for asynchronous backend activity.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Contains information about a batch write operation.
Contains information about a fetch operation.
Derived classes perform scheduled tasks.
Definition Task.h:9