virtualObject
Create a proxy client for a Restate virtual object.
Example usage:
@Handler
suspend fun myHandler(): Long {
val counter = virtualObject<Counter>("my-counter")
return 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