Module: Restate::ObjectContext
Overview
Context interface for VirtualObject exclusive handlers (full state access). Extends ObjectSharedContext with mutating state operations.
Instance Method Summary collapse
-
#clear(name) ⇒ Object
Durably remove a single state entry.
-
#clear_all ⇒ Object
Durably remove all state entries.
-
#set(name, value, serde: JsonSerde) ⇒ Object
Durably set a state entry.
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, #reject_signal, #request, #resolve_awakeable, #resolve_signal, #run, #run_sync, #service_call, #service_send, #signal, #sleep, #wait_any, #workflow_call, #workflow_send
Instance Method Details
#clear(name) ⇒ Object
Durably remove a single state entry.
191 |
# File 'lib/restate/context.rb', line 191 def clear(name); end |
#clear_all ⇒ Object
Durably remove all state entries.
194 |
# File 'lib/restate/context.rb', line 194 def clear_all; end |
#set(name, value, serde: JsonSerde) ⇒ Object
Durably set a state entry.
188 |
# File 'lib/restate/context.rb', line 188 def set(name, value, serde: JsonSerde); end |