Connectum API Reference / @connectum/events-amqp / types / AmqpPublisherOptions
Interface: AmqpPublisherOptions ​
Defined in: packages/events-amqp/src/types.ts:304
Publisher options.
Properties ​
correlationHeader? ​
readonlyoptionalcorrelationHeader?:boolean
Defined in: packages/events-amqp/src/types.ts:333
How basic.return frames are correlated to publishes when mandatory: true. The return frame carries no deliveryTag, so:
true(default): stamp a privatex-connectum-publish-idheader on mandatory publishes and match returns by it. The header is visible on the wire to external consumers — document it in contracts.false: no header; mandatory publishes are serialized (single-flight) so at most one is outstanding at a time — correlation is unambiguous at the cost of throughput.
Default ​
ts
truemandatory? ​
readonlyoptionalmandatory?:boolean
Defined in: packages/events-amqp/src/types.ts:318
Whether the message should be returned if it cannot be routed. Unroutable messages reject the publish with AmqpUnroutableError.
Default ​
ts
falsepersistent? ​
readonlyoptionalpersistent?:boolean
Defined in: packages/events-amqp/src/types.ts:310
Whether messages should be persisted to disk (deliveryMode=2).
Default ​
ts
true