Class: Temporalio::Worker::Tuner::SlotSupplier::Custom::ReleaseContext

Inherits:
Data
  • Object
show all
Defined in:
lib/temporalio/worker/tuner.rb

Overview

Context provided for releasing a slot.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#permitObject (readonly)

Returns the value of attribute permit

Returns:

  • (Object)

    the current value of permit



110
111
112
113
# File 'lib/temporalio/worker/tuner.rb', line 110

ReleaseContext = Data.define(
  :slot_info,
  :permit
)

#slot_infoObject (readonly)

Returns the value of attribute slot_info

Returns:

  • (Object)

    the current value of slot_info



110
111
112
113
# File 'lib/temporalio/worker/tuner.rb', line 110

ReleaseContext = Data.define(
  :slot_info,
  :permit
)

Instance Method Details

#permit=(value) ⇒ Object (readonly)

Returns Object that was provided as the permit on reserve.

Returns:

  • (Object)

    Object that was provided as the permit on reserve.



110
111
112
113
# File 'lib/temporalio/worker/tuner.rb', line 110

ReleaseContext = Data.define(
  :slot_info,
  :permit
)

#slot_info=(value) ⇒ SlotInfo::Workflow, ... (readonly)

Returns Information about the slot. This may be nil if the slot was never used.

Returns:



110
111
112
113
# File 'lib/temporalio/worker/tuner.rb', line 110

ReleaseContext = Data.define(
  :slot_info,
  :permit
)