Class: AMQ::Protocol::Basic::Qos

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, prefetch_size, prefetch_count, global) ⇒ Object

u’prefetch_size = false’, u’prefetch_count = false’, u’global = false’

Returns:



1617
1618
1619
1620
1621
1622
1623
1624
1625
# File 'lib/amq/protocol/client.rb', line 1617

def self.encode(channel, prefetch_size, prefetch_count, global)
  buffer = @packed_indexes.dup
  buffer << [prefetch_size].pack(PACK_UINT32)
  buffer << [prefetch_count].pack(PACK_UINT16)
  bit_buffer = 0
  bit_buffer = bit_buffer | (1 << 0) if global
  buffer << [bit_buffer].pack(PACK_CHAR)
  MethodFrame.new(buffer, channel)
end

.has_content?Boolean

Returns:

  • (Boolean)


1611
1612
1613
# File 'lib/amq/protocol/client.rb', line 1611

def self.has_content?
  false
end