Method: Hopper::Channel#initialize

Defined in:
lib/hopper/channel.rb

#initializeChannel

Returns a new instance of Channel.

[View source]

19
20
21
22
23
24
25
26
27
# File 'lib/hopper/channel.rb', line 19

def initialize
  conn = Bunny.new
  conn.start

  @bunny = conn.create_channel
  @bunny.prefetch(1)

  @queues = {}
end