toVirtualObject
@ApiStatus.Experimental
Create a builder for invoking a Restate virtual object.
Example usage:
val response = client.toVirtualObject<Counter>("my-counter")
.request { add(1) }
.call()Content copied to clipboard
Return
a builder for creating typed requests
Parameters
SVC
the virtual object class annotated with @VirtualObject
key
the key identifying the specific virtual object instance