Module: Temporalio::Client::Interceptor

Defined in:
lib/temporalio/client/interceptor.rb

Overview

Note:

Input classes herein may get new required fields added and therefore the constructors of the Input classes

Mixin for intercepting clients. Classes that include this should implement their own #intercept_client that returns their own instance of Outbound.

may change in backwards incompatible ways. Users should not try to construct Input classes themselves.

Defined Under Namespace

Classes: CancelWorkflowInput, CompleteAsyncActivityInput, CountWorkflowsInput, DescribeWorkflowInput, FailAsyncActivityInput, FetchWorkflowHistoryEventsInput, HeartbeatAsyncActivityInput, ListWorkflowsInput, Outbound, PollWorkflowUpdateInput, QueryWorkflowInput, ReportCancellationAsyncActivityInput, SignalWorkflowInput, StartWorkflowInput, StartWorkflowUpdateInput, TerminateWorkflowInput

Instance Method Summary collapse

Instance Method Details

#intercept_client(next_interceptor) ⇒ Outbound

Method called when intercepting a client. This is called upon client creation.

Parameters:

  • next_interceptor (Outbound)

    Next interceptor in the chain that should be called. This is usually passed to Outbound constructor.

Returns:

  • (Outbound)

    Interceptor to be called for client calls.



16
17
18
# File 'lib/temporalio/client/interceptor.rb', line 16

def intercept_client(next_interceptor)
  next_interceptor
end