Class: Temporalio::Converters::StorageDriverRetrieveContext
- Inherits:
-
Data
- Object
- Data
- Temporalio::Converters::StorageDriverRetrieveContext
- Defined in:
- lib/temporalio/converters/storage_driver_retrieve_context.rb,
lib/temporalio/converters/storage_driver_retrieve_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#retrieve.
This deliberately carries no execution target. A payload must be retrievable from its StorageDriverClaim alone, since the same payload can be read from a different execution than the one that stored it.
Instance Attribute Summary collapse
-
#cancellation ⇒ Cancellation
readonly
Cancellation for this retrieve operation.
-
#limiter ⇒ Object
readonly
Returns the value of attribute limiter.
Instance Method Summary collapse
-
#initialize(cancellation:, limiter: StorageDriverLimiter::UNBOUNDED) ⇒ StorageDriverRetrieveContext
constructor
A new instance of StorageDriverRetrieveContext.
Constructor Details
#initialize(cancellation:, limiter: StorageDriverLimiter::UNBOUNDED) ⇒ StorageDriverRetrieveContext
Returns a new instance of StorageDriverRetrieveContext.
25 26 27 |
# File 'lib/temporalio/converters/storage_driver_retrieve_context.rb', line 25 def initialize(cancellation:, limiter: StorageDriverLimiter::UNBOUNDED) super end |
Instance Attribute Details
#cancellation ⇒ Cancellation (readonly)
Returns Cancellation for this retrieve operation. The SDK does not cancel it yet. Drivers may still check it, so that they stop early once the SDK does.
24 25 26 |
# File 'lib/temporalio/converters/storage_driver_retrieve_context.rb', line 24 def cancellation @cancellation end |
#limiter ⇒ Object (readonly)
Returns the value of attribute limiter
8 9 10 |
# File 'lib/temporalio/converters/storage_driver_retrieve_context.rb', line 8 def limiter @limiter end |