Interface MessageChain<TMessage>

Type Parameters

  • TMessage = unknown

Hierarchy

  • MessageChain

Properties

metaType: "preparedMessage"

Methods

  • Set the expiration time in milliseconds. The message will be discarded after it's been in the queue for longer than that

    Parameters

    • expiration: number

    Returns MessageChain<TMessage>

  • Returns Partial<MessageChainState<TMessage>>

  • Set content-type header to application/json. If content is provided it will be stringified and set as content

    Type Parameters

    • TCustomMessage = TMessage

    Parameters

    • Optional data: TCustomMessage

    Returns MessageChain<TCustomMessage>

  • Mandatory messages will be returned to sender if they're not routed Haredo doesn't implement basic.return yet so this will not do anything

    Parameters

    • Optional mandatory: boolean

    Returns MessageChain<TMessage>

  • persistent messages survive broker restarts provided it's in a queue that also survives restarts

    Parameters

    • Optional persistent: boolean

    Returns MessageChain<TMessage>

  • If supplied, RabbitMQ will compare it to the username supplied when opening the connection and reject messages for which it does not match

    Parameters

    • userId: string

    Returns MessageChain<TMessage>

Generated using TypeDoc