class PatternMatchingRabbitMQRoom

Public Class Methods

new(name:, exclusive: false, autoDelete: false, channel:, exchange: queueName = "") click to toggle source
Calls superclass method BaseRabbitMQRoom::new
# File lib/postcard_rb/dispatchers/RabbitMQ/routings/PatternMatching/PatternMatchingRabbitMQRoom.rb, line 4
def initialize name:, exclusive: false, autoDelete: false, channel:, exchange:
  queueName = ""
  queueName = name if exclusive

  queue = channel.queue(queueName, :auto_delete => autoDelete).bind(exchange, :routing_key => name)

  super(channel: channel, queue: queue, exclusive: exclusive)
end