Home > @imqueue/rpc > ClusteredRedisQueue
ClusteredRedisQueue class
Class ClusteredRedisQueue Implements the possibility to scale queues horizontally between several redis instances.
Signature:
export declare class ClusteredRedisQueue implements IMessageQueue, EventEmitter<EventMap>
Implements: IMessageQueue, EventEmitter<EventMap>
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Class constructor |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Logger instance associated with this queue instance {ILogger} | |||
|
string |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
Adds new servers to the cluster | |
|
Clears queue data in queue host application. Supposed to be an async function. | ||
|
Safely destroys the current queue, unregistered all set event listeners and connections. Supposed to be an async function. | ||
|
|
Removes server from the cluster | |
|
Sends a message to a given queue name with the given data. Supposed to be an async function. | ||
|
Starts the messaging queue. Supposed to be an async function. | ||
|
Stops the queue (should stop handling queue messages). Supposed to be an async function. | ||