Module: RightSpeed::Listener
- Defined in:
- lib/right_speed/listener.rb
Defined Under Namespace
Classes: FairListener, RoundRobinListener, SimpleListener
Class Method Summary collapse
Class Method Details
.setup(worker_type:, host:, port:, backlog: nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/right_speed/listener.rb', line 7 def self.setup(worker_type:, host:, port:, backlog: nil) case worker_type when :roundrobin RoundRobinListener.new(host, port, backlog) when :fair FairListener.new(host, port, backlog) else SimpleListener.new(host, port, backlog) end end |