|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
Persistence for job records. Implementations must be thread-safe. More...
#include <JobStore.hpp>

Public Member Functions | |
| virtual | ~IJobStore ()=default |
| virtual void | save (std::string_view queue, const JobRecord &record)=0 |
Insert record under queue, or replace the record with the same id. | |
| virtual std::optional< JobRecord > | find (std::string_view queue, std::string_view id) const =0 |
One record, or nullopt when id is unknown in queue (or was evicted by the store's retention policy). | |
| virtual std::vector< JobRecord > | list (std::string_view queue) const =0 |
Every retained record of queue, most recently submitted first. | |
| virtual void | forget (std::string_view queue)=0 |
Drop every record of queue (its case was deleted, and a new case may reuse the key). | |
Persistence for job records. Implementations must be thread-safe.
Definition at line 35 of file JobStore.hpp.
|
virtualdefault |
|
pure virtual |
One record, or nullopt when id is unknown in queue (or was evicted by the store's retention policy).
Implemented in reusex::pipeline::InMemoryJobStore.
|
pure virtual |
Drop every record of queue (its case was deleted, and a new case may reuse the key).
Unknown queues are ignored.
Implemented in reusex::pipeline::InMemoryJobStore.
|
pure virtual |
Every retained record of queue, most recently submitted first.
Implemented in reusex::pipeline::InMemoryJobStore.
|
pure virtual |
Insert record under queue, or replace the record with the same id.
Called at every state transition, never for progress ticks.
Implemented in reusex::pipeline::InMemoryJobStore.