Class: Temporalio::Converters::StorageDriverSelectContext
- Inherits:
-
Data
- Object
- Data
- Temporalio::Converters::StorageDriverSelectContext
- Defined in:
- lib/temporalio/converters/storage_driver_select_context.rb,
lib/temporalio/converters/storage_driver_select_context.rb
Overview
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
-
#cancellation ⇒ Cancellation
readonly
Cancellation for the operation this selection is part of.
-
#namespace ⇒ String?
readonly
Namespace of the client or worker performing the store, or nil when it is not known.
-
#target ⇒ StorageDriverWorkflowInfo, ...
readonly
The execution the payload is being stored on behalf of, or nil when there is no associated execution.
Instance Method Summary collapse
-
#initialize(target:, cancellation:, namespace: nil) ⇒ StorageDriverSelectContext
constructor
A new instance of StorageDriverSelectContext.
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.
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.
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.
26 27 28 |
# File 'lib/temporalio/converters/storage_driver_select_context.rb', line 26 def target @target end |