Skip to content

Latest commit

 

History

History
203 lines (111 loc) · 2.18 KB

Producer.md

File metadata and controls

203 lines (111 loc) · 2.18 KB

RedisSMQ / Docs / API Reference / Producer

Class: Producer

Hierarchy

  • Base

    Producer

Table of contents

Constructors

Methods

Constructors

constructor

new Producer(): Producer

Returns

Producer

Inherited from

Base.constructor

Methods

getId

getId(): string

Returns

string

Inherited from

Base.getId


handleError

handleError(err): void

Parameters

Name Type
err Error

Returns

void

Inherited from

Base.handleError


isDown

isDown(): boolean

Returns

boolean

Inherited from

Base.isDown


isGoingDown

isGoingDown(): boolean

Returns

boolean

Inherited from

Base.isGoingDown


isGoingUp

isGoingUp(): boolean

Returns

boolean

Inherited from

Base.isGoingUp


isRunning

isRunning(): boolean

Returns

boolean

Inherited from

Base.isRunning


isUp

isUp(): boolean

Returns

boolean

Inherited from

Base.isUp


produce

produce(msg, cb): void

Parameters

Name Type
msg ProducibleMessage
cb ICallback<string[]>

Returns

void


run

run(cb?): void

Parameters

Name Type
cb? ICallback<boolean>

Returns

void

Inherited from

Base.run


shutdown

shutdown(cb?): void

Parameters

Name Type
cb? ICallback<boolean>

Returns

void

Inherited from

Base.shutdown