Class: Temporalio::Worker::Interceptor::Activity::Outbound
- Inherits:
-
Object
- Object
- Temporalio::Worker::Interceptor::Activity::Outbound
- Defined in:
- lib/temporalio/worker/interceptor.rb
Overview
Outbound interceptor for intercepting outbound activity calls. This should be extended by users needing to intercept activity calls.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#next_interceptor ⇒ Outbound
readonly
Next interceptor in the chain.
Instance Method Summary collapse
-
#heartbeat(input) ⇒ Object
Issue a heartbeat.
-
#initialize(next_interceptor) ⇒ Outbound
constructor
Initialize outbound with the next interceptor in the chain.
Constructor Details
#initialize(next_interceptor) ⇒ Outbound
Initialize outbound with the next interceptor in the chain.
74 75 76 |
# File 'lib/temporalio/worker/interceptor.rb', line 74 def initialize(next_interceptor) @next_interceptor = next_interceptor end |
Instance Attribute Details
#next_interceptor ⇒ Outbound (readonly)
Returns Next interceptor in the chain.
69 70 71 |
# File 'lib/temporalio/worker/interceptor.rb', line 69 def next_interceptor @next_interceptor end |
Instance Method Details
#heartbeat(input) ⇒ Object
Issue a heartbeat.
81 82 83 |
# File 'lib/temporalio/worker/interceptor.rb', line 81 def heartbeat(input) @next_interceptor.heartbeat(input) end |