RabbitMQMessageQueueFactory

Creates RabbitMQMessageQueue components by their descriptors.

Implements: Factory

Description

The RabbitMQMessageQueueFactory class allows you to create RabbitMQMessageQueue components by their descriptors..

Constructors

Creates an instance of this class.

NewRabbitMQMessageQueueFactory

NewRabbitMQMessageQueueFactory() *RabbitMQMessageQueueFactory

Instance methods

Configure

Configures the component by passing its configuration parameters.

(c *RabbitMQMessageQueueFactory) Configure(ctx context.Context, config *ConfigParams)

  • ctx: context.Context - operation context.
  • config: *ConfigParams - configuration parameters to be set.

SetReferences

Sets references to dependent components.

(c *RabbitMQMessageQueueFactory) SetReferences(ctx context.Context, references IReferences)

  • ctx: context.Context - operation context.
  • references: IReferences - references to locate the component’s dependencies.

CreateQueue

Creates a message queue component and assigns its name.

(c *RabbitMQMessageQueueFactory) CreateQueue(name string) IMessageQueue

  • name: string - a name of the created message queue.