Class: AMQ::Protocol::Basic::Get
- Defined in:
- lib/amq/protocol/client.rb
Class Method Summary collapse
-
.encode(channel, queue, no_ack) ⇒ Object
[u’ticket = 0’, u’queue = EMPTY_STRING’, u’no_ack = false’].
- .has_content? ⇒ Boolean
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Class Method Details
.encode(channel, queue, no_ack) ⇒ Object
- u’ticket = 0’, u’queue = EMPTY_STRING’, u’no_ack = false’
1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 |
# File 'lib/amq/protocol/client.rb', line 1904 def self.encode(channel, queue, no_ack) ticket = 0 buffer = '' buffer << @packed_indexes buffer << [ticket].pack(PACK_UINT16) buffer << queue.to_s.bytesize.chr buffer << queue.to_s bit_buffer = 0 bit_buffer = bit_buffer | (1 << 0) if no_ack buffer << [bit_buffer].pack(PACK_CHAR) MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
1898 1899 1900 |
# File 'lib/amq/protocol/client.rb', line 1898 def self.has_content? false end |