Class: Qless::JobReservers::ShuffledRoundRobin
- Inherits:
-
RoundRobin
- Object
- RoundRobin
- Qless::JobReservers::ShuffledRoundRobin
- Defined in:
- lib/qless/job_reservers/shuffled_round_robin.rb
Constant Summary collapse
- TYPE_DESCRIPTION =
"shuffled round robin"
Instance Attribute Summary
Attributes inherited from RoundRobin
Instance Method Summary collapse
-
#initialize(queues) ⇒ ShuffledRoundRobin
constructor
A new instance of ShuffledRoundRobin.
Methods inherited from RoundRobin
Constructor Details
#initialize(queues) ⇒ ShuffledRoundRobin
Returns a new instance of ShuffledRoundRobin.
6 7 8 |
# File 'lib/qless/job_reservers/shuffled_round_robin.rb', line 6 def initialize(queues) super(queues.shuffle) end |