|
11 | 11 | * - Reliable<Throttle>: to have throttle + notifications via callbacks |
12 | 12 | * |
13 | 13 | * @author Michael van der Werve <[email protected]> |
14 | | - * @copyright 2020 Copernica BV |
| 14 | + * @copyright 2020 - 2023 Copernica BV |
15 | 15 | */ |
16 | 16 |
|
17 | 17 | /** |
@@ -128,10 +128,10 @@ class Tagger : public Watchable |
128 | 128 | * @param flags optional flags |
129 | 129 | * @return uint64_t |
130 | 130 | */ |
131 | | - uint64_t publish(const std::string &exchange, const std::string &routingKey, const Envelope &envelope, int flags = 0); |
132 | | - uint64_t publish(const std::string &exchange, const std::string &routingKey, const std::string &message, int flags = 0) { return publish(exchange, routingKey, Envelope(message.data(), message.size()), flags); } |
133 | | - uint64_t publish(const std::string &exchange, const std::string &routingKey, const char *message, size_t size, int flags = 0) { return publish(exchange, routingKey, Envelope(message, size), flags); } |
134 | | - uint64_t publish(const std::string &exchange, const std::string &routingKey, const char *message, int flags = 0) { return publish(exchange, routingKey, Envelope(message, strlen(message)), flags); } |
| 131 | + uint64_t publish(const std::string_view &exchange, const std::string_view &routingKey, const Envelope &envelope, int flags = 0); |
| 132 | + uint64_t publish(const std::string_view &exchange, const std::string_view &routingKey, const std::string_view &message, int flags = 0) { return publish(exchange, routingKey, Envelope(message.data(), message.size()), flags); } |
| 133 | + uint64_t publish(const std::string_view &exchange, const std::string_view &routingKey, const char *message, size_t size, int flags = 0) { return publish(exchange, routingKey, Envelope(message, size), flags); } |
| 134 | + uint64_t publish(const std::string_view &exchange, const std::string_view &routingKey, const char *message, int flags = 0) { return publish(exchange, routingKey, Envelope(message, strlen(message)), flags); } |
135 | 135 |
|
136 | 136 | /** |
137 | 137 | * Close underlying channel |
|
0 commit comments