Defines an interface for message queue connections
Description
The IMessageQueueConnection interface is used to create message queue connections.
Instance methods
createQueue
Creates a message queue. If connection doesn’t support this function, it exits without error.
createQueue(name: string)
- name: string - name of the queue to be created.
deleteQueue
Deletes a message queue. If connection doesn’t support this function, it exits without error.
deleteQueue(name: string)
- name: string - name of the queue to be deleted.
readQueueNames
Reads a list of registered queue names. If connection doesn’t support this function returns an empty list.
readQueueNames(): Promise<string[]>
- returns: Promise<string[]> - list with registered queue names.