lintel 0.2.0
Loading...
Searching...
No Matches
MessageQueueRepository.h
Go to the documentation of this file.
1#ifndef LINTEL_MESSAGEQUEUEREPOSITORY_H
2#define LINTEL_MESSAGEQUEUEREPOSITORY_H
3
9#include <memory>
10#include <optional>
11#include <vector>
12
13namespace lintel {
18{
19private:
20 std::shared_ptr<DatabaseConnectionConfigurations> m_connectionConfigurations;
21 std::shared_ptr<DatabaseConnectionEntry> m_connectionEntry;
22
23public:
28 MessageQueueEntry allMessageQueueNameOf(const std::string &name);
29
35 std::vector<MessageQueueEntry> allOf(const std::string &processName, const std::string &messageQueueName);
36
46 Page<MessageQueueEntry> pageOf(const std::string &processName,
47 const std::string &messageQueueName,
48 const std::optional<std::string> &afterName,
49 std::size_t limit) override;
50
55 std::vector<MessageQueueEntry> allProcessNameOf(const std::string &processName);
56
61 void insertOf(const std::vector<MessageQueueEntry> &entries);
62
67 void deleteOf(const std::vector<MessageQueueEntry> &entries);
68
73 MessageQueueRepository(const std::shared_ptr<DatabaseConnectionConfigurations> &connectionConfigurations);
74};
75
76}// namespace lintel
77#endif// LINTEL_MESSAGEQUEUEREPOSITORY_H
Definition IMessageQueueRepository.h:18
Definition MessageQueueEntry.h:14
Definition MessageQueueRepository.h:18
std::vector< MessageQueueEntry > allProcessNameOf(const std::string &processName)
std::vector< MessageQueueEntry > allOf(const std::string &processName, const std::string &messageQueueName)
Page< MessageQueueEntry > pageOf(const std::string &processName, const std::string &messageQueueName, const std::optional< std::string > &afterName, std::size_t limit) override
void insertOf(const std::vector< MessageQueueEntry > &entries)
MessageQueueEntry allMessageQueueNameOf(const std::string &name)
void deleteOf(const std::vector< MessageQueueEntry > &entries)
MessageQueueRepository(const std::shared_ptr< DatabaseConnectionConfigurations > &connectionConfigurations)
Definition Page.h:15
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9