Module: Restate::ObjectContext

Includes:
ObjectSharedContext
Included in:
WorkflowContext
Defined in:
lib/restate/context.rb

Overview

Context interface for VirtualObject exclusive handlers (full state access). Extends ObjectSharedContext with mutating state operations.

Instance Method Summary collapse

Methods included from ObjectSharedContext

#get, #get_async, #state_keys, #state_keys_async

Methods included from Context

#awakeable, #cancel_invocation, #generic_call, #generic_send, #key, #object_call, #object_send, #reject_awakeable, #request, #resolve_awakeable, #run, #run_sync, #service_call, #service_send, #sleep, #wait_any, #workflow_call, #workflow_send

Instance Method Details

#clear(name) ⇒ Object

Durably remove a single state entry.



179
# File 'lib/restate/context.rb', line 179

def clear(name); end

#clear_allObject

Durably remove all state entries.



182
# File 'lib/restate/context.rb', line 182

def clear_all; end

#set(name, value, serde: JsonSerde) ⇒ Object

Durably set a state entry.



176
# File 'lib/restate/context.rb', line 176

def set(name, value, serde: JsonSerde); end