MessageQueueFactory

Creates IMessageQueue components based on their descriptors.

Extends: Factory

Implements: IMessageQueueFactory, IConfigurable, IReferenceable

Description

The MessageQueueFactory class allows you to create IMessageQueue components based on their descriptors.

Fields

_config

Configuration paramters

protected _config: ConfigParams

_references

References used to locate the component dependencies

protected _references: IReferences

Abstract methods

createQueue

Creates a message queue component and assigns its name.

public abstract createQueue(name: string): IMessageQueue

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

Instance methods

configure

Configures the component by passing its configuration parameters.

public configure(config: ConfigParams)

  • config: ConfigParams - configuration parameters to be set.

setReferences

Sets references to dependent components.

public setReferences(references: IReferences)

  • references: IReferences - references to locate the component dependencies.

See also