Module: Temporalio::Client::Plugin
- Included in:
- SimplePlugin
- Defined in:
- lib/temporalio/client/plugin.rb
Overview
Plugin mixin to include for configuring clients and/or intercepting connect calls.
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.
Instance Method Summary collapse
-
#configure_client(options) ⇒ Options
abstract
Configure a client.
-
#connect_client(options, next_call) ⇒ Connection
abstract
Connect a client.
-
#name ⇒ String
abstract
Name of the plugin.
Instance Method Details
#configure_client(options) ⇒ Options
This method is abstract.
Configure a client.
23 24 25 |
# File 'lib/temporalio/client/plugin.rb', line 23 def configure_client() raise NotImplementedError end |
#connect_client(options, next_call) ⇒ Connection
This method is abstract.
Connect a client.
Implementers are expected to delegate to next_call to perform the connection. Note, this does not apply to users explicitly creating connections via Connection constructor.
37 38 39 |
# File 'lib/temporalio/client/plugin.rb', line 37 def connect_client(, next_call) raise NotImplementedError end |
#name ⇒ String
This method is abstract.
Returns Name of the plugin.
14 15 16 |
# File 'lib/temporalio/client/plugin.rb', line 14 def name raise NotImplementedError end |