lintel 0.2.0
Loading...
Searching...
No Matches
HistoryServiceEntry.h
Go to the documentation of this file.
1#ifndef LINTEL_HISTORYSERVICEENTRY_H
2#define LINTEL_HISTORYSERVICEENTRY_H
3
4#include <cstdint>
5#include <ostream>
6#include <string>
7#include <string_view>
8
10
11namespace lintel {
14{
15private:
17 const std::string m_processName;
19 const std::string m_queueName;
21 const int32_t m_maxMessages;
22
23public:
29 HistoryServiceEntry(const std::string_view &component,
30 std::string processName,
31 std::string queueName,
32 int32_t maxMessages);
33
36 [[nodiscard]] const std::string &get_process_name() const;
37
40 [[nodiscard]] const std::string &get_queue_name() const;
41
44 [[nodiscard]] constexpr int32_t get_max_messages() const { return m_maxMessages; }
45
50 friend std::ostream &operator<<(std::ostream &os, const HistoryServiceEntry &entry);
51};
52
53}// namespace lintel
54#endif// LINTEL_HISTORYSERVICEENTRY_H
Definition Entry.h:10
Definition HistoryServiceEntry.h:14
friend std::ostream & operator<<(std::ostream &os, const HistoryServiceEntry &entry)
constexpr int32_t get_max_messages() const
Definition HistoryServiceEntry.h:44
const std::string & get_process_name() const
const std::string & get_queue_name() const
HistoryServiceEntry(const std::string_view &component, std::string processName, std::string queueName, int32_t maxMessages)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9