Class: Temporalio::Worker::Interceptor::Activity::Inbound
- Inherits:
-
Object
- Object
- Temporalio::Worker::Interceptor::Activity::Inbound
- Defined in:
- lib/temporalio/worker/interceptor.rb
Overview
Inbound interceptor for intercepting inbound activity calls. This should be extended by users needing to intercept activities.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#next_interceptor ⇒ Inbound
readonly
Next interceptor in the chain.
Instance Method Summary collapse
-
#execute(input) ⇒ Object
Execute an activity and return result or raise exception.
-
#init(outbound) ⇒ Outbound
Initialize the outbound interceptor.
-
#initialize(next_interceptor) ⇒ Inbound
constructor
Initialize inbound with the next interceptor in the chain.
Constructor Details
#initialize(next_interceptor) ⇒ Inbound
Initialize inbound with the next interceptor in the chain.
37 38 39 |
# File 'lib/temporalio/worker/interceptor.rb', line 37 def initialize(next_interceptor) @next_interceptor = next_interceptor end |
Instance Attribute Details
#next_interceptor ⇒ Inbound (readonly)
Returns Next interceptor in the chain.
32 33 34 |
# File 'lib/temporalio/worker/interceptor.rb', line 32 def next_interceptor @next_interceptor end |
Instance Method Details
#execute(input) ⇒ Object
Execute an activity and return result or raise exception. Next interceptor in chain (i.e. ‘super`) will perform the execution.
55 56 57 |
# File 'lib/temporalio/worker/interceptor.rb', line 55 def execute(input) @next_interceptor.execute(input) end |