Class: AMQ::Protocol::Exchange::Unbind
- Defined in:
- lib/amq/protocol/client.rb
Class Method Summary collapse
-
.encode(channel, destination, source, routing_key, nowait, arguments) ⇒ Object
[“ticket = 0”, “destination = nil”, “source = nil”, “routing_key = EMPTY_STRING”, “nowait = false”, “arguments = {}”].
- .has_content? ⇒ Boolean
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
- “ticket = 0”, “destination = nil”, “source = nil”, “routing_key = EMPTY_STRING”, “nowait = false”, “arguments = {}”
951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 |
# File 'lib/amq/protocol/client.rb', line 951 def self.encode(channel, destination, source, routing_key, nowait, arguments) ticket = 0 buffer = "" buffer << @packed_indexes buffer << [ticket].pack(PACK_UINT16) buffer << destination.bytesize.chr buffer << destination buffer << source.bytesize.chr buffer << source buffer << routing_key.bytesize.chr buffer << routing_key bit_buffer = 0 bit_buffer = bit_buffer | (1 << 0) if nowait buffer << [bit_buffer].pack(PACK_CHAR) buffer << AMQ::Protocol::Table.encode(arguments) MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
945 946 947 |
# File 'lib/amq/protocol/client.rb', line 945 def self.has_content? false end |