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
[u’ticket = 0’, u’destination = nil’, u’source = nil’, u’routing_key = EMPTY_STRING’, u’nowait = false’, 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, 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 = {}‘
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'lib/amq/protocol/client.rb', line 1039 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 << AMQ::Protocol::Table.encode(arguments) MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
1033 1034 1035 |
# File 'lib/amq/protocol/client.rb', line 1033 def self.has_content? false end |