20 #ifndef RIPPLE_NODESTORE_FACTORY_H_INCLUDED
21 #define RIPPLE_NODESTORE_FACTORY_H_INCLUDED
23 #include <ripple/beast/utility/Journal.h>
24 #include <ripple/nodestore/Backend.h>
25 #include <ripple/nodestore/Scheduler.h>
26 #include <nudb/store.hpp>
73 nudb::context& context,
Holds a collection of configuration values.
Base class for backend factories.
virtual std::unique_ptr< Backend > createInstance(size_t keyBytes, Section const ¶meters, std::size_t burstSize, Scheduler &scheduler, nudb::context &context, beast::Journal journal)
Create an instance of this factory's backend.
virtual std::string getName() const =0
Retrieve the name of this factory.
A generic endpoint for log messages.
Scheduling for asynchronous backend activity.
virtual std::unique_ptr< Backend > createInstance(size_t keyBytes, Section const ¶meters, std::size_t burstSize, Scheduler &scheduler, beast::Journal journal)=0
Create an instance of this factory's backend.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual ~Factory()=default