Class: AMQ::Protocol::Queue::Purge
- Defined in:
- lib/amq/protocol/client.rb
Class Method Summary collapse
-
.encode(channel, queue, nowait) ⇒ Object
[u’ticket = 0’, u’queue = EMPTY_STRING’, u’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, queue, nowait) ⇒ Object
- u’ticket = 0’, u’queue = EMPTY_STRING’, u’nowait = false’
1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 |
# File 'lib/amq/protocol/client.rb', line 1221 def self.encode(channel, queue, nowait) ticket = 0 buffer = @packed_indexes.dup 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 nowait buffer << [bit_buffer].pack(PACK_CHAR) MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
1215 1216 1217 |
# File 'lib/amq/protocol/client.rb', line 1215 def self.has_content? false end |