Class: AMQ::Protocol::Queue::Delete
- Defined in:
- lib/amq/protocol/client.rb
Class Method Summary collapse
-
.encode(channel, queue, if_unused, if_empty, nowait) ⇒ Object
[u’ticket = 0’, u’queue = EMPTY_STRING’, u’if_unused = false’, u’if_empty = false’, 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, if_unused, if_empty, nowait) ⇒ Object
- u’ticket = 0’, u’queue = EMPTY_STRING’, u’if_unused = false’, u’if_empty = false’, u’nowait = false’
1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 |
# File 'lib/amq/protocol/client.rb', line 1251 def self.encode(channel, queue, if_unused, if_empty, nowait) 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 if_unused bit_buffer = bit_buffer | (1 << 1) if if_empty bit_buffer = bit_buffer | (1 << 2) if nowait buffer << [bit_buffer].pack(PACK_CHAR) MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
1245 1246 1247 |
# File 'lib/amq/protocol/client.rb', line 1245 def self.has_content? false end |