Class: AMQ::Protocol::Connection::TuneOk

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_max, frame_max, heartbeat) ⇒ Object

u’channel_max = false’, u’frame_max = false’, u’heartbeat = false’

Returns:



465
466
467
468
469
470
471
472
473
# File 'lib/amq/protocol/client.rb', line 465

def self.encode(channel_max, frame_max, heartbeat)
  channel = 0
  buffer = ''
  buffer << @packed_indexes
  buffer << [channel_max].pack(PACK_UINT16)
  buffer << [frame_max].pack(PACK_UINT32)
  buffer << [heartbeat].pack(PACK_UINT16)
  MethodFrame.new(buffer, channel)
end

.has_content?Boolean

Returns:

  • (Boolean)


459
460
461
# File 'lib/amq/protocol/client.rb', line 459

def self.has_content?
  false
end