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

u’delivery_tag = nil’, u’requeue = true’

Returns:



2044
2045
2046
2047
2048
2049
2050
2051
2052
# File 'lib/amq/protocol/client.rb', line 2044

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)


2038
2039
2040
# File 'lib/amq/protocol/client.rb', line 2038

def self.has_content?
  false
end