Class for publishing chunks to message queues.
More...
#include <chunk_integrations.hpp>
Class for publishing chunks to message queues.
Definition at line 94 of file chunk_integrations.hpp.
◆ ChunkMessageQueue()
| chunk_integrations::ChunkMessageQueue::ChunkMessageQueue |
( |
std::unique_ptr< MessageQueueConnection > |
connection, |
|
|
const std::string & |
queue_name |
|
) |
| |
Constructor.
- Parameters
-
| connection | Message queue connection instance |
| queue_name | Target queue name |
◆ publish_chunks_kafka()
template<typename T >
| void chunk_integrations::ChunkMessageQueue::publish_chunks_kafka |
( |
const std::vector< std::vector< T > > & |
chunks | ) |
|
Publish chunks to Kafka topic.
- Template Parameters
-
| T | Data type of chunk elements |
- Parameters
-
| chunks | Vector of chunks to publish |
- Exceptions
-
| std::runtime_error | if publishing fails |
◆ publish_chunks_rabbitmq()
template<typename T >
| void chunk_integrations::ChunkMessageQueue::publish_chunks_rabbitmq |
( |
const std::vector< std::vector< T > > & |
chunks | ) |
|
Publish chunks to RabbitMQ queue.
- Template Parameters
-
| T | Data type of chunk elements |
- Parameters
-
| chunks | Vector of chunks to publish |
- Exceptions
-
| std::runtime_error | if publishing fails |
◆ mq_connection
◆ queue
| std::string chunk_integrations::ChunkMessageQueue::queue |
|
private |
The documentation for this class was generated from the following file: