Class: AMQ::Protocol::Basic::Reject

Inherits:
Method
  • Object
show all
Defined in:
lib/amq/protocol/client.rb

Class Method Summary collapse

Methods inherited from Method

encode_body, index, inherited, instantiate, method_id, methods, name, split_headers

Class Method Details

.encode(channel, delivery_tag, requeue) ⇒ Object

“delivery_tag = nil”, “requeue = true”

Returns:



1908
1909
1910
1911
1912
1913
1914
1915
1916
# File 'lib/amq/protocol/client.rb', line 1908

def self.encode(channel, delivery_tag, requeue)
  buffer = ""
  buffer << @packed_indexes
  buffer << AMQ::Hacks.pack_64_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

Returns:

  • (Boolean)


1902
1903
1904
# File 'lib/amq/protocol/client.rb', line 1902

def self.has_content?
  false
end