Class: Temporalio::Internal::Worker::WorkflowInstance::HandlerExecution
- Inherits:
-
Object
- Object
- Temporalio::Internal::Worker::WorkflowInstance::HandlerExecution
- Defined in:
- lib/temporalio/internal/worker/workflow_instance/handler_execution.rb
Overview
Representation of a currently-executing handler. Used to track whether any handlers are still running and warn on workflow complete as needed.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#unfinished_policy ⇒ Object
readonly
Returns the value of attribute unfinished_policy.
-
#update_id ⇒ Object
readonly
Returns the value of attribute update_id.
Instance Method Summary collapse
-
#initialize(name:, update_id:, unfinished_policy:) ⇒ HandlerExecution
constructor
A new instance of HandlerExecution.
Constructor Details
#initialize(name:, update_id:, unfinished_policy:) ⇒ HandlerExecution
Returns a new instance of HandlerExecution.
12 13 14 15 16 17 18 19 20 |
# File 'lib/temporalio/internal/worker/workflow_instance/handler_execution.rb', line 12 def initialize( name:, update_id:, unfinished_policy: ) @name = name @update_id = update_id @unfinished_policy = unfinished_policy end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/temporalio/internal/worker/workflow_instance/handler_execution.rb', line 10 def name @name end |
#unfinished_policy ⇒ Object (readonly)
Returns the value of attribute unfinished_policy.
10 11 12 |
# File 'lib/temporalio/internal/worker/workflow_instance/handler_execution.rb', line 10 def unfinished_policy @unfinished_policy end |
#update_id ⇒ Object (readonly)
Returns the value of attribute update_id.
10 11 12 |
# File 'lib/temporalio/internal/worker/workflow_instance/handler_execution.rb', line 10 def update_id @update_id end |