Creates KafkaMessageQueue components by their descriptors.
Implements: MessageQueueFactory
Description
The KafkaMessageQueueFactory class allows you to create KafkaMessageQueue components by their descriptors.
Important points
- The name of created message queue is taken from its descriptor.
Constructors
NewKafkaMessageQueueFactory
Creates a new instance of the factory.
NewKafkaMessageQueueFactory() *KafkaMessageQueueFactory
Methods
CreateQueue
Creates a message queue component and assigns its name.
(c *KafkaMessageQueueFactory) CreateQueue(name string) IMessageQueue
- name: string - name of the created message queue.
- returns: IMessageQueue - created queue component.