Class: AMQ::Protocol::Basic::Reject
- Defined in:
- lib/amq/protocol/client.rb
Class Method Summary collapse
-
.encode(channel, delivery_tag, requeue) ⇒ Object
[u’delivery_tag = nil’, u’requeue = true’].
- .has_content? ⇒ Boolean
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Class Method Details
.encode(channel, delivery_tag, requeue) ⇒ Object
- u’delivery_tag = nil’, u’requeue = true’
2058 2059 2060 2061 2062 2063 2064 2065 |
# File 'lib/amq/protocol/client.rb', line 2058 def self.encode(channel, delivery_tag, requeue) buffer = @packed_indexes.dup buffer << AMQ::Pack.pack_uint64_big_endian(delivery_tag) bit_buffer = 0 bit_buffer = bit_buffer | (1 << 0) if requeue buffer << [bit_buffer].pack(PACK_CHAR) MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
2052 2053 2054 |
# File 'lib/amq/protocol/client.rb', line 2052 def self.has_content? false end |