Skip to main content

AMQPPubSubParameters

@webda/amqp • Readme | API


Class: AMQPPubSubParameters

Extends​

  • ServiceParameters

Constructors​

new AMQPPubSubParameters(params)​

new AMQPPubSubParameters(params): AMQPPubSubParameters

Parameters​

• params: Partial<AMQPPubSubParameters>

Returns​

AMQPPubSubParameters

Overrides​

ServiceParameters.constructor

Source​

amqp/src/pubsub.ts:45

Properties​

channel​

channel: string

Source​

amqp/src/pubsub.ts:6


exchange?​

exchange?: Object

Type declaration​

alternateExchange?​

alternateExchange?: string

an exchange to send messages to if this exchange can’t route them to any queues.

Specific to RabbitMQ

arguments?​

arguments?: any

any additional arguments that may be needed by an exchange

autoDelete?​

autoDelete?: boolean

if true, the exchange will be destroyed once the number of bindings for which it is the source drop to zero.

Default​
false
durable?​

durable?: boolean

if true, the exchange will survive broker restarts.

Default​
true
internal?​

internal?: boolean

if true, messages cannot be published directly to the exchange (i.e., it can only be the target of bindings, or possibly create messages ex-nihilo).

Default​
false
type?​

type?: string

Default​
fanout

Source​

amqp/src/pubsub.ts:12


openapi?​

openapi?: OpenAPIWebdaDefinition

OpenAPI override

Schema Ignore​

Inherited from​

ServiceParameters.openapi

Source​

core/lib/services/service.d.ts:103


subscription​

subscription: string

Default​

""

Schema Optional​

Source​

amqp/src/pubsub.ts:11


type​

type: string

Type of the service

Inherited from​

ServiceParameters.type

Source​

core/lib/services/service.d.ts:94


url​

url: string

Overrides​

ServiceParameters.url

Source​

amqp/src/pubsub.ts:5