Class: Temporalio::Client::Interceptor::Outbound

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

Internal::Client::Implementation

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.



255
256
257
# File 'lib/temporalio/client/interceptor.rb', line 255

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.



250
251
252
# File 'lib/temporalio/client/interceptor.rb', line 250

def next_interceptor
  @next_interceptor
end

Instance Method Details

#backfill_schedule(input) ⇒ Object

Called for every ScheduleHandle#backfill call.

Parameters:



380
381
382
# File 'lib/temporalio/client/interceptor.rb', line 380

def backfill_schedule(input)
  next_interceptor.backfill_schedule(input)
end

#cancel_workflow(input) ⇒ Object

Called for every WorkflowHandle#cancel call.

Parameters:



350
351
352
# File 'lib/temporalio/client/interceptor.rb', line 350

def cancel_workflow(input)
  next_interceptor.cancel_workflow(input)
end

#complete_async_activity(input) ⇒ Object

Called for every AsyncActivityHandle#complete call.

Parameters:



437
438
439
# File 'lib/temporalio/client/interceptor.rb', line 437

def complete_async_activity(input)
  next_interceptor.complete_async_activity(input)
end

#count_workflows(input) ⇒ WorkflowExecutionCount

Called for every Temporalio::Client#count_workflows call.

Parameters:

Returns:



296
297
298
# File 'lib/temporalio/client/interceptor.rb', line 296

def count_workflows(input)
  next_interceptor.count_workflows(input)
end

#create_schedule(input) ⇒ ScheduleHandle

Called for every Temporalio::Client#create_schedule call.

Parameters:

Returns:



365
366
367
# File 'lib/temporalio/client/interceptor.rb', line 365

def create_schedule(input)
  next_interceptor.create_schedule(input)
end

#delete_schedule(input) ⇒ Object

Called for every ScheduleHandle#delete call.

Parameters:



387
388
389
# File 'lib/temporalio/client/interceptor.rb', line 387

def delete_schedule(input)
  next_interceptor.delete_schedule(input)
end

#describe_schedule(input) ⇒ Schedule::Description

Called for every ScheduleHandle#describe call.

Parameters:

Returns:



395
396
397
# File 'lib/temporalio/client/interceptor.rb', line 395

def describe_schedule(input)
  next_interceptor.describe_schedule(input)
end

#describe_workflow(input) ⇒ WorkflowExecution::Description

Called for every WorkflowHandle#describe call.

Parameters:

Returns:



304
305
306
# File 'lib/temporalio/client/interceptor.rb', line 304

def describe_workflow(input)
  next_interceptor.describe_workflow(input)
end

#fail_async_activity(input) ⇒ Object

Called for every AsyncActivityHandle#fail call.

Parameters:



444
445
446
# File 'lib/temporalio/client/interceptor.rb', line 444

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.

Parameters:

Returns:



312
313
314
# File 'lib/temporalio/client/interceptor.rb', line 312

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.

Parameters:



430
431
432
# File 'lib/temporalio/client/interceptor.rb', line 430

def heartbeat_async_activity(input)
  next_interceptor.heartbeat_async_activity(input)
end

#list_schedules(input) ⇒ Enumerator<Schedule::List::Description>

Called for every Temporalio::Client#list_schedules call.

Parameters:

Returns:



373
374
375
# File 'lib/temporalio/client/interceptor.rb', line 373

def list_schedules(input)
  next_interceptor.list_schedules(input)
end

#list_workflows(input) ⇒ Enumerator<WorkflowExecution>

Called for every Temporalio::Client#list_workflows call.

Parameters:

Returns:



288
289
290
# File 'lib/temporalio/client/interceptor.rb', line 288

def list_workflows(input)
  next_interceptor.list_workflows(input)
end

#pause_schedule(input) ⇒ Object

Called for every ScheduleHandle#pause call.

Parameters:



402
403
404
# File 'lib/temporalio/client/interceptor.rb', line 402

def pause_schedule(input)
  next_interceptor.pause_schedule(input)
end

#poll_workflow_update(input) ⇒ Api::Update::V1::Outcome

Called when polling for update result.

Parameters:

Returns:



343
344
345
# File 'lib/temporalio/client/interceptor.rb', line 343

def poll_workflow_update(input)
  next_interceptor.poll_workflow_update(input)
end

#query_workflow(input) ⇒ Object?

Called for every WorkflowHandle#query call.

Parameters:

Returns:

  • (Object, nil)

    Query result.



327
328
329
# File 'lib/temporalio/client/interceptor.rb', line 327

def query_workflow(input)
  next_interceptor.query_workflow(input)
end

#report_cancellation_async_activity(input) ⇒ Object

Parameters:



451
452
453
# File 'lib/temporalio/client/interceptor.rb', line 451

def report_cancellation_async_activity(input)
  next_interceptor.report_cancellation_async_activity(input)
end

#signal_with_start_workflow(input) ⇒ WorkflowHandle

Parameters:

Returns:



280
281
282
# File 'lib/temporalio/client/interceptor.rb', line 280

def signal_with_start_workflow(input)
  next_interceptor.signal_with_start_workflow(input)
end

#signal_workflow(input) ⇒ Object

Called for every WorkflowHandle#signal call.

Parameters:



319
320
321
# File 'lib/temporalio/client/interceptor.rb', line 319

def signal_workflow(input)
  next_interceptor.signal_workflow(input)
end

#start_update_with_start_workflow(input) ⇒ WorkflowUpdateHandle

Parameters:

Returns:



272
273
274
# File 'lib/temporalio/client/interceptor.rb', line 272

def start_update_with_start_workflow(input)
  next_interceptor.start_update_with_start_workflow(input)
end

#start_workflow(input) ⇒ WorkflowHandle

Parameters:

Returns:



263
264
265
# File 'lib/temporalio/client/interceptor.rb', line 263

def start_workflow(input)
  next_interceptor.start_workflow(input)
end

#start_workflow_update(input) ⇒ WorkflowUpdateHandle

Called for every WorkflowHandle#start_update call.

Parameters:

Returns:



335
336
337
# File 'lib/temporalio/client/interceptor.rb', line 335

def start_workflow_update(input)
  next_interceptor.start_workflow_update(input)
end

#terminate_workflow(input) ⇒ Object

Called for every WorkflowHandle#terminate call.

Parameters:



357
358
359
# File 'lib/temporalio/client/interceptor.rb', line 357

def terminate_workflow(input)
  next_interceptor.terminate_workflow(input)
end

#trigger_schedule(input) ⇒ Object

Called for every ScheduleHandle#trigger call.

Parameters:



409
410
411
# File 'lib/temporalio/client/interceptor.rb', line 409

def trigger_schedule(input)
  next_interceptor.trigger_schedule(input)
end

#unpause_schedule(input) ⇒ Object

Called for every ScheduleHandle#unpause call.

Parameters:



416
417
418
# File 'lib/temporalio/client/interceptor.rb', line 416

def unpause_schedule(input)
  next_interceptor.unpause_schedule(input)
end

#update_schedule(input) ⇒ Object

Called for every ScheduleHandle#update call.

Parameters:



423
424
425
# File 'lib/temporalio/client/interceptor.rb', line 423

def update_schedule(input)
  next_interceptor.update_schedule(input)
end