Class: AMQ::Protocol::Queue::Unbind
- Defined in:
- lib/amq/protocol/client.rb
Class Method Summary collapse
-
.encode(channel, queue, exchange, routing_key, arguments) ⇒ Object
[u’ticket = 0’, u’queue = EMPTY_STRING’, u’exchange = nil’, u’routing_key = EMPTY_STRING’, u’arguments = {}‘].
- .has_content? ⇒ Boolean
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Class Method Details
.encode(channel, queue, exchange, routing_key, arguments) ⇒ Object
- u’ticket = 0’, u’queue = EMPTY_STRING’, u’exchange = nil’, u’routing_key = EMPTY_STRING’, u’arguments = {}‘
1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 |
# File 'lib/amq/protocol/client.rb', line 1329 def self.encode(channel, queue, exchange, routing_key, arguments) ticket = 0 buffer = @packed_indexes.dup buffer << [ticket].pack(PACK_UINT16) buffer << queue.to_s.bytesize.chr buffer << queue.to_s buffer << exchange.to_s.bytesize.chr buffer << exchange.to_s buffer << routing_key.to_s.bytesize.chr buffer << routing_key.to_s buffer << AMQ::Protocol::Table.encode(arguments) MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
1323 1324 1325 |
# File 'lib/amq/protocol/client.rb', line 1323 def self.has_content? false end |