class AMQ::Protocol::Connection::Tune
Attributes
channel_max[R]
frame_max[R]
heartbeat[R]
Public Class Methods
decode(data)
click to toggle source
@return
# File lib/amq/protocol/client.rb, line 327 def self.decode(data) offset = 0 channel_max = data[offset, 2].unpack(PACK_UINT16).first offset += 2 frame_max = data[offset, 4].unpack(PACK_UINT32).first offset += 4 heartbeat = data[offset, 2].unpack(PACK_UINT16).first offset += 2 self.new(channel_max, frame_max, heartbeat) end
has_content?()
click to toggle source
# File lib/amq/protocol/client.rb, line 345 def self.has_content? false end
new(channel_max, frame_max, heartbeat)
click to toggle source
# File lib/amq/protocol/client.rb, line 339 def initialize(channel_max, frame_max, heartbeat) @channel_max = channel_max @frame_max = frame_max @heartbeat = heartbeat end