virtualObject
Create a proxy client for a Restate virtual object.
Example usage:
val counter = client.virtualObject<Counter>("my-key")
val value = counter.increment()Content copied to clipboard
Return
a proxy client to invoke the virtual object
Parameters
SVC
the virtual object class annotated with @VirtualObject
key
the key identifying the specific virtual object instance