Class: Temporalio::Client::Interceptor::Outbound
- Inherits:
-
Object
- Object
- Temporalio::Client::Interceptor::Outbound
- Defined in:
- lib/temporalio/client/interceptor.rb
Overview
Outbound interceptor for intercepting client calls. This should be extended by users needing to intercept client actions.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#next_interceptor ⇒ Outbound
readonly
Next interceptor in the chain.
Instance Method Summary collapse
-
#cancel_workflow(input) ⇒ Object
Called for every WorkflowHandle#cancel call.
-
#complete_async_activity(input) ⇒ Object
Called for every AsyncActivityHandle#complete call.
-
#count_workflows(input) ⇒ WorkflowExecutionCount
Called for every Temporalio::Client#count_workflows call.
-
#describe_workflow(input) ⇒ WorkflowExecution::Description
Called for every WorkflowHandle#describe call.
-
#fail_async_activity(input) ⇒ Object
Called for every AsyncActivityHandle#fail call.
-
#fetch_workflow_history_events(input) ⇒ Enumerator<Api::History::V1::HistoryEvent>
Called everytime the client needs workflow history.
-
#heartbeat_async_activity(input) ⇒ Object
Called for every AsyncActivityHandle#heartbeat call.
-
#initialize(next_interceptor) ⇒ Outbound
constructor
Initialize outbound with the next interceptor in the chain.
-
#list_workflows(input) ⇒ Enumerator<WorkflowExecution>
Called for every Temporalio::Client#list_workflows call.
-
#poll_workflow_update(input) ⇒ Api::Update::V1::Outcome
Called when polling for update result.
-
#query_workflow(input) ⇒ Object?
Called for every WorkflowHandle#query call.
-
#report_cancellation_async_activity(input) ⇒ Object
Called for every AsyncActivityHandle#report_cancellation call.
-
#signal_workflow(input) ⇒ Object
Called for every WorkflowHandle#signal call.
-
#start_workflow(input) ⇒ WorkflowHandle
Called for every Temporalio::Client#start_workflow and Temporalio::Client#execute_workflow call.
-
#start_workflow_update(input) ⇒ WorkflowUpdateHandle
Called for every WorkflowHandle#start_update call.
-
#terminate_workflow(input) ⇒ Object
Called for every WorkflowHandle#terminate call.
Constructor Details
#initialize(next_interceptor) ⇒ Outbound
Initialize outbound with the next interceptor in the chain.
197 198 199 |
# File 'lib/temporalio/client/interceptor.rb', line 197 def initialize(next_interceptor) @next_interceptor = next_interceptor end |
Instance Attribute Details
#next_interceptor ⇒ Outbound (readonly)
Returns Next interceptor in the chain.
192 193 194 |
# File 'lib/temporalio/client/interceptor.rb', line 192 def next_interceptor @next_interceptor end |
Instance Method Details
#cancel_workflow(input) ⇒ Object
Called for every WorkflowHandle#cancel call.
275 276 277 |
# File 'lib/temporalio/client/interceptor.rb', line 275 def cancel_workflow(input) next_interceptor.cancel_workflow(input) end |
#complete_async_activity(input) ⇒ Object
Called for every AsyncActivityHandle#complete call.
296 297 298 |
# File 'lib/temporalio/client/interceptor.rb', line 296 def complete_async_activity(input) next_interceptor.complete_async_activity(input) end |
#count_workflows(input) ⇒ WorkflowExecutionCount
Called for every Temporalio::Client#count_workflows call.
221 222 223 |
# File 'lib/temporalio/client/interceptor.rb', line 221 def count_workflows(input) next_interceptor.count_workflows(input) end |
#describe_workflow(input) ⇒ WorkflowExecution::Description
Called for every WorkflowHandle#describe call.
229 230 231 |
# File 'lib/temporalio/client/interceptor.rb', line 229 def describe_workflow(input) next_interceptor.describe_workflow(input) end |
#fail_async_activity(input) ⇒ Object
Called for every AsyncActivityHandle#fail call.
303 304 305 |
# File 'lib/temporalio/client/interceptor.rb', line 303 def fail_async_activity(input) next_interceptor.fail_async_activity(input) end |
#fetch_workflow_history_events(input) ⇒ Enumerator<Api::History::V1::HistoryEvent>
Called everytime the client needs workflow history. This includes getting the result.
237 238 239 |
# File 'lib/temporalio/client/interceptor.rb', line 237 def fetch_workflow_history_events(input) next_interceptor.fetch_workflow_history_events(input) end |
#heartbeat_async_activity(input) ⇒ Object
Called for every AsyncActivityHandle#heartbeat call.
289 290 291 |
# File 'lib/temporalio/client/interceptor.rb', line 289 def heartbeat_async_activity(input) next_interceptor.heartbeat_async_activity(input) end |
#list_workflows(input) ⇒ Enumerator<WorkflowExecution>
Called for every Temporalio::Client#list_workflows call.
213 214 215 |
# File 'lib/temporalio/client/interceptor.rb', line 213 def list_workflows(input) next_interceptor.list_workflows(input) end |
#poll_workflow_update(input) ⇒ Api::Update::V1::Outcome
Called when polling for update result.
268 269 270 |
# File 'lib/temporalio/client/interceptor.rb', line 268 def poll_workflow_update(input) next_interceptor.poll_workflow_update(input) end |
#query_workflow(input) ⇒ Object?
Called for every WorkflowHandle#query call.
252 253 254 |
# File 'lib/temporalio/client/interceptor.rb', line 252 def query_workflow(input) next_interceptor.query_workflow(input) end |
#report_cancellation_async_activity(input) ⇒ Object
Called for every AsyncActivityHandle#report_cancellation call.
310 311 312 |
# File 'lib/temporalio/client/interceptor.rb', line 310 def report_cancellation_async_activity(input) next_interceptor.report_cancellation_async_activity(input) end |
#signal_workflow(input) ⇒ Object
Called for every WorkflowHandle#signal call.
244 245 246 |
# File 'lib/temporalio/client/interceptor.rb', line 244 def signal_workflow(input) next_interceptor.signal_workflow(input) end |
#start_workflow(input) ⇒ WorkflowHandle
Called for every Temporalio::Client#start_workflow and Temporalio::Client#execute_workflow call.
205 206 207 |
# File 'lib/temporalio/client/interceptor.rb', line 205 def start_workflow(input) next_interceptor.start_workflow(input) end |
#start_workflow_update(input) ⇒ WorkflowUpdateHandle
Called for every WorkflowHandle#start_update call.
260 261 262 |
# File 'lib/temporalio/client/interceptor.rb', line 260 def start_workflow_update(input) next_interceptor.start_workflow_update(input) end |
#terminate_workflow(input) ⇒ Object
Called for every WorkflowHandle#terminate call.
282 283 284 |
# File 'lib/temporalio/client/interceptor.rb', line 282 def terminate_workflow(input) next_interceptor.terminate_workflow(input) end |