Object
Message metadata (aka envelope).
Acknowledges the receipt of this message with the server. @param [Boolean] multiple Whether or not to acknowledge multiple messages @api public
# File lib/amqp/header.rb, line 34 34: def ack(multiple = false) 35: @channel.acknowledge(@method.delivery_tag, multiple) 36: end
# File lib/amqp/header.rb, line 55 55: def consumer_tag 56: @method.consumer_tag 57: end
# File lib/amqp/header.rb, line 84 84: def content_type 85: @attributes[:content_type] 86: end
# File lib/amqp/header.rb, line 104 104: def correlation_id 105: @attributes[:correlation_id] 106: end
# File lib/amqp/header.rb, line 80 80: def delivery_mode 81: @attributes[:delivery_mode] 82: end
# File lib/amqp/header.rb, line 51 51: def delivery_tag 52: @method.delivery_tag 53: end
# File lib/amqp/header.rb, line 67 67: def exchange 68: @method.exchange 69: end
@deprecated
# File lib/amqp/header.rb, line 72 72: def header 73: @attributes 74: end
# File lib/amqp/header.rb, line 76 76: def headers 77: @attributes[:headers] 78: end
# File lib/amqp/header.rb, line 108 108: def message_id 109: @attributes[:message_id] 110: end
Returns AMQP message attributes. @api public
# File lib/amqp/header.rb, line 115 115: def method_missing(meth, *args, &blk) 116: if @attributes && args.empty? && blk.nil? && @attributes.has_key?(meth) 117: @attributes[meth] 118: else 119: @method.__send__(meth, *args, &blk) 120: end 121: end
# File lib/amqp/header.rb, line 96 96: def priority 97: @attributes[:priority] 98: end
# File lib/amqp/header.rb, line 59 59: def redelivered 60: @method.redelivered 61: end
# File lib/amqp/header.rb, line 63 63: def redelivered? 64: @method.redelivered 65: end
Reject this message. @option opts [Hash] :requeue (false) Whether message should be requeued. @api public
# File lib/amqp/header.rb, line 41 41: def reject(opts = {}) 42: @channel.reject(@method.delivery_tag, opts.fetch(:requeue, false)) 43: end
# File lib/amqp/header.rb, line 88 88: def timestamp 89: @attributes[:timestamp] 90: end
@return [Hash] AMQP message header w/o method-specific information. @api public
# File lib/amqp/header.rb, line 47 47: def to_hash 48: @attributes 49: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.