NatsMessageQueueFactory

Creates NatsMessageQueue components by their descriptors.

Extends: MessageQueueFactory

Description

The NatsMessageQueueFactory class allows you to create NatsMessageQueue components by their descriptors.

Important points

  • The name of the created message queue is taken from its descriptor.

Constructors

NewNatsMessageQueueFactory

Creates a new instance of the factory.

NewNatsMessageQueueFactory() *NatsMessageQueueFactory

Methods

CreateQueue

Creates a message queue component and assigns its name.

(c *NatsMessageQueueFactory) CreateQueue(name string) IMessageQueue

  • name: string - name of the created message queue.
  • returns: IMessageQueue - created queue component.

CreateBareQueue

Creates a bare message queue component and assigns its name.

(c *NatsMessageQueueFactory) CreateBareQueue(name string) IMessageQueue

  • name: string - name of the created message queue.
  • returns: IMessageQueue - created queue component.

See also