Class: Temporalio::Converters::StorageDriverStoreContext
- Inherits:
-
Data
- Object
- Data
- Temporalio::Converters::StorageDriverStoreContext
- Defined in:
- lib/temporalio/converters/storage_driver_store_context.rb,
lib/temporalio/converters/storage_driver_store_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 Temporalio::Converters::StorageDriver#store.
Instance Attribute Summary collapse
-
#cancellation ⇒ Cancellation
readonly
Cancellation for this store operation.
-
#limiter ⇒ Object
readonly
Returns the value of attribute limiter.
-
#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 payloads are being stored on behalf of, or nil when there is no associated execution.
Instance Method Summary collapse
-
#initialize(target:, cancellation:, limiter: StorageDriverLimiter::UNBOUNDED, namespace: nil) ⇒ StorageDriverStoreContext
constructor
A new instance of StorageDriverStoreContext.
Constructor Details
#initialize(target:, cancellation:, limiter: StorageDriverLimiter::UNBOUNDED, namespace: nil) ⇒ StorageDriverStoreContext
Returns a new instance of StorageDriverStoreContext.
29 30 31 |
# File 'lib/temporalio/converters/storage_driver_store_context.rb', line 29 def initialize(target:, cancellation:, limiter: StorageDriverLimiter::UNBOUNDED, namespace: nil) super end |
Instance Attribute Details
#cancellation ⇒ Cancellation (readonly)
Returns Cancellation for this store operation. The SDK does not cancel it yet. Drivers may still check it, so that they stop early once the SDK does.
28 29 30 |
# File 'lib/temporalio/converters/storage_driver_store_context.rb', line 28 def cancellation @cancellation end |
#limiter ⇒ Object (readonly)
Returns the value of attribute limiter
8 9 10 |
# File 'lib/temporalio/converters/storage_driver_store_context.rb', line 8 def limiter @limiter end |
#namespace ⇒ String? (readonly)
Returns Namespace of the client or worker performing the store, or nil when it is not known.
28 29 30 |
# File 'lib/temporalio/converters/storage_driver_store_context.rb', line 28 def namespace @namespace end |
#target ⇒ StorageDriverWorkflowInfo, ... (readonly)
Returns The execution the payloads are being stored on behalf of, or nil when there is no associated execution.
28 29 30 |
# File 'lib/temporalio/converters/storage_driver_store_context.rb', line 28 def target @target end |