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
[“ticket = 0”, “queue = EMPTY_STRING”, “if_unused = false”, “if_empty = false”, “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
- “ticket = 0”, “queue = EMPTY_STRING”, “if_unused = false”, “if_empty = false”, “nowait = false”
1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 |
# File 'lib/amq/protocol/client.rb', line 1171 def self.encode(channel, queue, if_unused, if_empty, nowait) ticket = 0 buffer = "" buffer << @packed_indexes buffer << [ticket].pack(PACK_UINT16) buffer << queue.bytesize.chr buffer << queue 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
1165 1166 1167 |
# File 'lib/amq/protocol/client.rb', line 1165 def self.has_content? false end |