Class: Temporalio::Worker::Interceptor::Activity::Outbound

Inherits:
Object
  • Object
show all
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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(next_interceptor) ⇒ Outbound

Initialize outbound with the next interceptor in the chain.

Parameters:

  • next_interceptor (Outbound)

    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_interceptorOutbound (readonly)

Returns Next interceptor in the chain.

Returns:

  • (Outbound)

    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.

Parameters:



81
82
83
# File 'lib/temporalio/worker/interceptor.rb', line 81

def heartbeat(input)
  @next_interceptor.heartbeat(input)
end