Class: Temporalio::Converters::StorageDriverSelectContext

Inherits:
Data
  • Object
show all
Defined in:
lib/temporalio/converters/storage_driver_select_context.rb,
lib/temporalio/converters/storage_driver_select_context.rb

Overview

Note:

WARNING: This API is experimental and may change in the future. Members may be added, so accept keyword arguments defensively if constructing this yourself.

Context given to the driver selector.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target:, cancellation:, namespace: nil) ⇒ StorageDriverSelectContext

Returns a new instance of StorageDriverSelectContext.



27
28
29
# File 'lib/temporalio/converters/storage_driver_select_context.rb', line 27

def initialize(target:, cancellation:, namespace: nil)
  super
end

Instance Attribute Details

#cancellation ⇒ Cancellation (readonly)

Returns Cancellation for the operation this selection is part of. The SDK does not cancel it yet.

Returns:

  • (Cancellation) —

    Cancellation for the operation this selection is part of. The SDK does not cancel it yet.



26
27
28
# File 'lib/temporalio/converters/storage_driver_select_context.rb', line 26

def cancellation
  @cancellation
end

#namespace ⇒ String? (readonly)

Returns Namespace of the client or worker performing the store, or nil when it is not known.

Returns:

  • (String, nil) —

    Namespace of the client or worker performing the store, or nil when it is not known.



26
27
28
# File 'lib/temporalio/converters/storage_driver_select_context.rb', line 26

def namespace
  @namespace
end

#target ⇒ StorageDriverWorkflowInfo, ... (readonly)

Returns The execution the payload is being stored on behalf of, or nil when there is no associated execution.

Returns:



26
27
28
# File 'lib/temporalio/converters/storage_driver_select_context.rb', line 26

def target
  @target
end