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:



1985
1986
1987
1988
1989
1990
1991
1992
# File 'lib/amq/protocol/client.rb', line 1985

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

Returns:

  • (Boolean)


1979
1980
1981
# File 'lib/amq/protocol/client.rb', line 1979

def self.has_content?
  false
end