# File lib/amqp/channel.rb, line 1223 def self.initialize_channel_id_allocator # TODO: ideally, this should be in agreement with agreed max number of channels of the connection, # but it is possible that value either not yet available. MK. max_channel = (1 << 16) - 1 @int_allocator ||= IntAllocator.new(1, max_channel) end