Class: Temporalio::Converters::StorageDriverStoreContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Returns:

  • (Cancellation) —

    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

Returns:

  • (Object) —

    the current value of 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.

Returns:

  • (String, nil) —

    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.

Returns:



28
29
30
# File 'lib/temporalio/converters/storage_driver_store_context.rb', line 28

def target
  @target
end