Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AmqpMessageBuilder

Builder to create a new AmqpMessage.

Reference about the different metadata can be found on AMQP message properties.

Note that the body is set using withBodyAs* method depending on the passed type.

Hierarchy

  • AmqpMessageBuilder

Index

Methods

address

  • Parameters

    • address: string

    Returns AmqpMessageBuilder

applicationProperties

  • Parameters

    • props: {}
      • [key: string]: any

    Returns AmqpMessageBuilder

build

  • Returns AmqpMessage

contentEncoding

  • Parameters

    • ct: string

    Returns AmqpMessageBuilder

contentType

  • Parameters

    • ct: string

    Returns AmqpMessageBuilder

correlationId

  • Parameters

    • correlationId: string

    Returns AmqpMessageBuilder

creationTime

  • Parameters

    • ct: number

    Returns AmqpMessageBuilder

deliveryCount

  • Parameters

    • count: number

    Returns AmqpMessageBuilder

durable

  • Parameters

    • durable: boolean

    Returns AmqpMessageBuilder

expiryTime

  • Parameters

    • expiry: number

    Returns AmqpMessageBuilder

firstAcquirer

  • Parameters

    • first: boolean

    Returns AmqpMessageBuilder

groupId

  • Parameters

    • gi: string

    Returns AmqpMessageBuilder

id

  • Parameters

    • id: string

    Returns AmqpMessageBuilder

priority

  • Parameters

    • priority: number

    Returns AmqpMessageBuilder

replyTo

  • Parameters

    • replyTo: string

    Returns AmqpMessageBuilder

replyToGroupId

  • Parameters

    • rt: string

    Returns AmqpMessageBuilder

subject

  • Parameters

    • subject: string

    Returns AmqpMessageBuilder

ttl

  • Parameters

    • ttl: number

    Returns AmqpMessageBuilder

withBody

  • Parameters

    • value: string

    Returns AmqpMessageBuilder

withBooleanAsBody

  • Parameters

    • v: boolean

    Returns AmqpMessageBuilder

withBufferAsBody

  • Parameters

    • buffer: Buffer

    Returns AmqpMessageBuilder

withByteAsBody

  • Parameters

    • v: number

    Returns AmqpMessageBuilder

withCharAsBody

  • Parameters

    • c: string

    Returns AmqpMessageBuilder

withDoubleAsBody

  • Parameters

    • v: number

    Returns AmqpMessageBuilder

withFloatAsBody

  • Parameters

    • v: number

    Returns AmqpMessageBuilder

withInstantAsBody

  • Parameters

    • v: Date

    Returns AmqpMessageBuilder

withIntegerAsBody

  • Parameters

    • v: number

    Returns AmqpMessageBuilder

withJsonArrayAsBody

  • Parameters

    • json: any[]

    Returns AmqpMessageBuilder

withJsonObjectAsBody

  • Parameters

    • json: {}
      • [key: string]: any

    Returns AmqpMessageBuilder

withLongAsBody

  • Parameters

    • v: number

    Returns AmqpMessageBuilder

withShortAsBody

  • Parameters

    • v: number

    Returns AmqpMessageBuilder

withSymbolAsBody

  • Parameters

    • value: string

    Returns AmqpMessageBuilder

withUuidAsBody

  • Parameters

    • v: any

    Returns AmqpMessageBuilder

Static create

  • Returns AmqpMessageBuilder

Generated using TypeDoc