Class: AMQ::Protocol::Queue::Unbind

Inherits:
Method
  • Object
show all
Defined in:
lib/amq/protocol/client.rb

Class Method Summary collapse

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 = {}‘

Returns:



1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
# File 'lib/amq/protocol/client.rb', line 1256

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

Returns:

  • (Boolean)


1250
1251
1252
# File 'lib/amq/protocol/client.rb', line 1250

def self.has_content?
  false
end