Class: Temporalio::Converters::StorageDriverClaim

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

Overview

Note:

WARNING: This API is experimental and may change in the future.

Driver-defined reference to an externally stored payload, used to retrieve it later.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(claim_data:) ⇒ StorageDriverClaim

Create a claim.

Parameters:

  • claim_data (Hash<String, String>) —

    Data identifying the stored payload.



18
19
20
21
22
23
24
25
# File 'lib/temporalio/converters/storage_driver_claim.rb', line 18

def initialize(claim_data:)
  # Copied and frozen because a claim is compared and hashed by this data, so a later mutation would silently
  # change its identity. The values are copied individually because freezing the Hash leaves them mutable in
  # place and still aliased to the caller's objects.
  # steep:ignore:start
  super(claim_data: claim_data.transform_values { |value| value.dup.freeze }.freeze)
  # steep:ignore:end
end

Instance Attribute Details

#claim_data ⇒ Hash<String, String> (readonly)

Returns Data the driver needs to retrieve the payload. This is written into history, so it must contain everything required for retrieval and must not contain secrets.

Returns:

  • (Hash<String, String>) —

    Data the driver needs to retrieve the payload. This is written into history, so it must contain everything required for retrieval and must not contain secrets.



14
15
16
# File 'lib/temporalio/converters/storage_driver_claim.rb', line 14

def claim_data
  @claim_data
end