Class: AMQ::Protocol::Basic::Cancel
- Defined in:
- lib/amq/protocol/client.rb
Class Method Summary collapse
-
.encode(channel, consumer_tag, nowait) ⇒ Object
[“consumer_tag = nil”, “nowait = false”].
- .has_content? ⇒ Boolean
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Class Method Details
.encode(channel, consumer_tag, nowait) ⇒ Object
- “consumer_tag = nil”, “nowait = false”
1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 |
# File 'lib/amq/protocol/client.rb', line 1606 def self.encode(channel, consumer_tag, nowait) buffer = "" buffer << @packed_indexes buffer << consumer_tag.bytesize.chr buffer << consumer_tag bit_buffer = 0 bit_buffer = bit_buffer | (1 << 0) if nowait buffer << [bit_buffer].pack(PACK_CHAR) MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
1600 1601 1602 |
# File 'lib/amq/protocol/client.rb', line 1600 def self.has_content? false end |