Class: Temporalio::Worker::Tuner::SlotSupplier::Fixed
- Inherits:
-
Temporalio::Worker::Tuner::SlotSupplier
- Object
- Temporalio::Worker::Tuner::SlotSupplier
- Temporalio::Worker::Tuner::SlotSupplier::Fixed
- Defined in:
- lib/temporalio/worker/tuner.rb
Overview
A fixed-size slot supplier that will never issue more than a fixed number of slots.
Instance Attribute Summary collapse
-
#slots ⇒ Integer
readonly
The maximum number of slots that can be issued.
Instance Method Summary collapse
-
#initialize(slots) ⇒ Fixed
constructor
Create fixed-size slot supplier.
Constructor Details
#initialize(slots) ⇒ Fixed
Create fixed-size slot supplier.
18 19 20 |
# File 'lib/temporalio/worker/tuner.rb', line 18 def initialize(slots) # rubocop:disable Lint/MissingSuper @slots = slots end |
Instance Attribute Details
#slots ⇒ Integer (readonly)
Returns The maximum number of slots that can be issued.
13 14 15 |
# File 'lib/temporalio/worker/tuner.rb', line 13 def slots @slots end |