Sha256: e840f6986167f24050b79f6a85368e5a24345193d9db82f7e0ba2b2f51d81b04
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
module BBK module AMQP module RejectionPolicies class Reject attr_reader :logger def initialize(logger: BBK::Utils::Logger.default) @logger = logger end def call(message, error, *_args, **_kwargs) logger.debug "Reject message #{message.headers[:type]}[#{message.headers[:message_id]}] delivery tag: #{message.delivery_info[:delivery_tag].to_i}. Error: #{error.inspect}" message.delivery_info[:channel].reject message.delivery_info[:delivery_tag], false end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bbk-amqp-1.1.1.273631 | lib/bbk/amqp/rejection_policies/reject.rb |
bbk-amqp-1.1.1.273342 | lib/bbk/amqp/rejection_policies/reject.rb |