Skip to content

Documentation / @super-line/adapter-rabbitmq / RabbitmqAdapterOptions

Interface: RabbitmqAdapterOptions

Defined in: index.ts:8

Options for createRabbitmqAdapter.

Properties

connection?

optional connection?: Connection

Defined in: index.ts:16

Bring your own (constructed) rabbitmq-client Connection — the advanced case (TLS, multi-host failover, custom heartbeat, vhost). When provided, the adapter does NOT own its lifecycle: close() leaves it open.


exchange?

optional exchange?: string

Defined in: index.ts:18

The single durable direct exchange every node shares. Defaults to 'super-line'.


presence?

optional presence?: false | { livenessTtlMs?: number; snapshotIntervalMs?: number; }

Defined in: index.ts:26

Cluster presence directory (powers srv.cluster.* / srv.isOnline). On by default; set false to disable (cluster queries then throw). Pass an object to tune the gossip timings (defaults: snapshotIntervalMs 10_000, livenessTtlMs 30_000).


queuePrefix?

optional queuePrefix?: string

Defined in: index.ts:20

Prefix for this node's exclusive auto-delete queue (<prefix>.<uuid>). Defaults to 'sl.node'.


url?

optional url?: string

Defined in: index.ts:10

amqp:// (or amqps://) connection URL. The simple case.

Released under the MIT License.