RedisSMQ / Docs / API Reference / Producer
-
Base
↳
Producer
• new Producer(): Producer
Base.constructor
▸ getId(): string
string
Base.getId
▸ handleError(err
): void
Name | Type |
---|---|
err |
Error |
void
Base.handleError
▸ isDown(): boolean
boolean
Base.isDown
▸ isGoingDown(): boolean
boolean
Base.isGoingDown
▸ isGoingUp(): boolean
boolean
Base.isGoingUp
▸ isRunning(): boolean
boolean
Base.isRunning
▸ isUp(): boolean
boolean
Base.isUp
▸ produce(msg
, cb
): void
Name | Type |
---|---|
msg |
ProducibleMessage |
cb |
ICallback <string []> |
void
▸ run(cb?
): void
Name | Type |
---|---|
cb? |
ICallback <boolean > |
void
Base.run
▸ shutdown(cb?
): void
Name | Type |
---|---|
cb? |
ICallback <boolean > |
void
Base.shutdown