Class: AMQ::Protocol::Exchange::Bind
- 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 = {}”
900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 |
# File 'lib/amq/protocol/client.rb', line 900 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
894 895 896 |
# File 'lib/amq/protocol/client.rb', line 894 def self.has_content? false end |