Class: GorgonAMQ::Protocol::Exchange::Unbind

Inherits:
Method
  • Object
show all
Defined in:
lib/gorgon_amq-protocol/lib/gorgon_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, destination, source, routing_key, nowait, arguments) ⇒ Object

u’ticket = 0’, u’destination = nil’, u’source = nil’, u’routing_key = EMPTY_STRING’, u’nowait = false’, u’arguments = {}‘

Returns:



966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 966

def self.encode(channel, destination, source, routing_key, nowait, arguments)
  ticket = 0
  buffer = @packed_indexes.dup
  buffer << [ticket].pack(PACK_UINT16)
  buffer << destination.to_s.bytesize.chr
  buffer << destination.to_s
  buffer << source.to_s.bytesize.chr
  buffer << source.to_s
  buffer << routing_key.to_s.bytesize.chr
  buffer << routing_key.to_s
  bit_buffer = 0
  bit_buffer = bit_buffer | (1 << 0) if nowait
  buffer << [bit_buffer].pack(PACK_CHAR)
  buffer << GorgonAMQ::Protocol::Table.encode(arguments)
  MethodFrame.new(buffer, channel)
end

.has_content?Boolean

Returns:

  • (Boolean)


960
961
962
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 960

def self.has_content?
  false
end