Class: Temporalio::Worker::Tuner::ResourceBasedSlotOptions
- Inherits:
-
Data
- Object
- Data
- Temporalio::Worker::Tuner::ResourceBasedSlotOptions
- Defined in:
- lib/temporalio/worker/tuner.rb
Overview
Options for a specific slot type being used with SlotSupplier::ResourceBased.
Instance Attribute Summary collapse
-
#max_slots ⇒ Object
readonly
Returns the value of attribute max_slots.
-
#min_slots ⇒ Object
readonly
Returns the value of attribute min_slots.
-
#ramp_throttle ⇒ Object
readonly
Returns the value of attribute ramp_throttle.
Instance Method Summary collapse
-
#max_slots(value) ⇒ Integer?
readonly
Maximum amount of slots permitted.
-
#min_slots(value) ⇒ Integer?
readonly
Amount of slots that will be issued regardless of any other checks.
-
#ramp_throttle(value) ⇒ Float?
readonly
Minimum time we will wait (after passing the minimum slots number) between handing out new slots in seconds.
Instance Attribute Details
#max_slots ⇒ Object (readonly)
Returns the value of attribute max_slots
254 255 256 257 258 |
# File 'lib/temporalio/worker/tuner.rb', line 254 ResourceBasedSlotOptions = Data.define( :min_slots, :max_slots, :ramp_throttle ) |
#min_slots ⇒ Object (readonly)
Returns the value of attribute min_slots
254 255 256 257 258 |
# File 'lib/temporalio/worker/tuner.rb', line 254 ResourceBasedSlotOptions = Data.define( :min_slots, :max_slots, :ramp_throttle ) |
#ramp_throttle ⇒ Object (readonly)
Returns the value of attribute ramp_throttle
254 255 256 257 258 |
# File 'lib/temporalio/worker/tuner.rb', line 254 ResourceBasedSlotOptions = Data.define( :min_slots, :max_slots, :ramp_throttle ) |
Instance Method Details
#max_slots=(value) ⇒ Integer? (readonly)
254 255 256 257 258 |
# File 'lib/temporalio/worker/tuner.rb', line 254 ResourceBasedSlotOptions = Data.define( :min_slots, :max_slots, :ramp_throttle ) |
#min_slots=(value) ⇒ Integer? (readonly)
254 255 256 257 258 |
# File 'lib/temporalio/worker/tuner.rb', line 254 ResourceBasedSlotOptions = Data.define( :min_slots, :max_slots, :ramp_throttle ) |
#ramp_throttle=(value) ⇒ Float? (readonly)
254 255 256 257 258 |
# File 'lib/temporalio/worker/tuner.rb', line 254 ResourceBasedSlotOptions = Data.define( :min_slots, :max_slots, :ramp_throttle ) |