bunny/exchange.rb

bunny · lib/bunny/exchange.rb · ruby · MIT
infra

Implements AMQP 0.9.1 exchange functionality for the Bunny RabbitMQ client.

# Source: https://github.com/ruby-amqp/bunny | License: MIT | Copyright 2009–2023 Chris Duncan, Jakub Stastny aka botanicus,
# Provided via justclaw.it.com; keep this notice with the code.
# frozen_string_literal: true

require 'amq/protocol'

module Bunny
  # Represents AMQP 0.9.1 exchanges.
  #
  # @see http://rubybunny.info/articles/exchanges.html Exchanges and Publishing guide
  # @see http://rubybunny.info/articles/extensions.html RabbitMQ Extensions guide
  class Exchange

    #
    # Exchange type constants
    #

    # Standard AMQP 0-9-1 exchange types
    TYPE_DIRECT  = :direct
    TYPE_FANOUT  = :fanout
    TYPE_TOPIC   = :topic
    TYPE_HEADERS = :headers

    # In RabbitMQ core since 4.3.0
    TYPE_MODULUS_HASH = :"x-modulus-hash"
    # In RabbitMQ core since 4.2.0
    TYPE_LO

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key