Module: Temporalio::Worker::Plugin
- Included in:
- SimplePlugin
- Defined in:
- lib/temporalio/worker/plugin.rb
Overview
Plugin mixin to include for configuring workers and workflow replayers, and intercepting the running of them.
This is a low-level implementation that requires abstract methods herein to be implemented. Many implementers may prefer SimplePlugin which includes this.
WARNING: Plugins are experimental.
Defined Under Namespace
Classes: RunWorkerOptions, WithWorkflowReplayWorkerOptions
Instance Method Summary collapse
-
#configure_worker(options) ⇒ Options
abstract
Configure a worker.
-
#configure_workflow_replayer(options) ⇒ WorkflowReplayer::Options
abstract
Configure a workflow replayer.
-
#name ⇒ String
abstract
Name of the plugin.
-
#run_worker(options, next_call) ⇒ Object
abstract
Run a worker.
-
#with_workflow_replay_worker(options, next_call) ⇒ Object
abstract
Run a replay worker.
Instance Method Details
#configure_worker(options) ⇒ Options
This method is abstract.
Configure a worker.
52 53 54 |
# File 'lib/temporalio/worker/plugin.rb', line 52 def configure_worker() raise NotImplementedError end |
#configure_workflow_replayer(options) ⇒ WorkflowReplayer::Options
This method is abstract.
Configure a workflow replayer.
72 73 74 |
# File 'lib/temporalio/worker/plugin.rb', line 72 def configure_workflow_replayer() raise NotImplementedError end |
#name ⇒ String
This method is abstract.
Returns Name of the plugin.
43 44 45 |
# File 'lib/temporalio/worker/plugin.rb', line 43 def name raise NotImplementedError end |
#run_worker(options, next_call) ⇒ Object
This method is abstract.
Run a worker.
63 64 65 |
# File 'lib/temporalio/worker/plugin.rb', line 63 def run_worker(, next_call) raise NotImplementedError end |
#with_workflow_replay_worker(options, next_call) ⇒ Object
This method is abstract.
Run a replay worker.
83 84 85 |
# File 'lib/temporalio/worker/plugin.rb', line 83 def with_workflow_replay_worker(, next_call) raise NotImplementedError end |