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.
76 77 78 |
# File 'lib/temporalio/worker/interceptor.rb', line 76 def initialize(next_interceptor) @next_interceptor = next_interceptor end |
Instance Attribute Details
#next_interceptor ⇒ Outbound (readonly)
Returns Next interceptor in the chain.
71 72 73 |
# File 'lib/temporalio/worker/interceptor.rb', line 71 def next_interceptor @next_interceptor end |
Instance Method Details
#heartbeat(input) ⇒ Object
Issue a heartbeat.
83 84 85 |
# File 'lib/temporalio/worker/interceptor.rb', line 83 def heartbeat(input) @next_interceptor.heartbeat(input) end |