rippled
Loading...
Searching...
No Matches
DummyScheduler.h
1#pragma once
2
3#include <xrpl/nodestore/Scheduler.h>
4
5namespace xrpl {
6namespace NodeStore {
7
10{
11public:
12 DummyScheduler() = default;
13 ~DummyScheduler() = default;
14 void
15 scheduleTask(Task& task) override;
16 void
17 onFetch(FetchReport const& report) override;
18 void
19 onBatchWrite(BatchWriteReport const& report) override;
20};
21
22} // namespace NodeStore
23} // namespace xrpl
Simple NodeStore Scheduler that just performs the tasks synchronously.
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.
void scheduleTask(Task &task) override
Schedules a task.
Scheduling for asynchronous backend activity.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
Contains information about a batch write operation.
Contains information about a fetch operation.
Derived classes perform scheduled tasks.
Definition Task.h:8