Class: Temporalio::Converters::StorageDriverRetrieveContext

Inherits:
Data
  • Object
show all
Defined in:
lib/temporalio/converters/storage_driver_retrieve_context.rb,
lib/temporalio/converters/storage_driver_retrieve_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 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

Instance Method Summary collapse

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.

Returns:

  • (Cancellation) —

    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

Returns:

  • (Object) —

    the current value of limiter



8
9
10
# File 'lib/temporalio/converters/storage_driver_retrieve_context.rb', line 8

def limiter
  @limiter
end