Class: GorgonAMQ::Protocol::Basic::Reject

Inherits:
Method
  • Object
show all
Defined in:
lib/gorgon_amq-protocol/lib/gorgon_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:



1984
1985
1986
1987
1988
1989
1990
1991
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 1984

def self.encode(channel, delivery_tag, requeue)
  buffer = @packed_indexes.dup
  buffer << GorgonAMQ::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)


1978
1979
1980
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 1978

def self.has_content?
  false
end