rippled
|
Scheduling for asynchronous backend activity. More...
Public Member Functions | |
virtual | ~Scheduler ()=default |
virtual void | scheduleTask (Task &task)=0 |
Schedules a task. More... | |
virtual void | onFetch (FetchReport const &report)=0 |
Reports completion of a fetch Allows the scheduler to monitor the node store's performance. More... | |
virtual void | onBatchWrite (BatchWriteReport const &report)=0 |
Reports the completion of a batch write Allows the scheduler to monitor the node store's performance. More... | |
Scheduling for asynchronous backend activity.
For improved performance, a backend has the option of performing writes in batches. These writes can be scheduled using the provided scheduler object.
Definition at line 60 of file ripple/nodestore/Scheduler.h.
|
virtualdefault |
|
pure virtual |
Schedules a task.
Depending on the implementation, the task may be invoked either on the current thread of execution, or an unspecified implementation-defined foreign thread.
Implemented in ripple::NodeStore::DummyScheduler, and ripple::NodeStoreScheduler.
|
pure virtual |
Reports completion of a fetch Allows the scheduler to monitor the node store's performance.
Implemented in ripple::NodeStoreScheduler, and ripple::NodeStore::DummyScheduler.
|
pure virtual |
Reports the completion of a batch write Allows the scheduler to monitor the node store's performance.
Implemented in ripple::NodeStoreScheduler, and ripple::NodeStore::DummyScheduler.