ScopedClient

@ApiStatus.Experimental
class ScopedClient

PREVIEW: A client for making RPC calls within a specific scope.

Obtain an instance via scope.

See also

Properties

Link copied to clipboard
@get:ApiStatus.Internal
val scope: String

Functions

Link copied to clipboard
@ApiStatus.Internal
open fun getInnerClient(): Client
Link copied to clipboard
@ApiStatus.Experimental
open fun <SVC> service(clazz: Class<SVC>): SVC
Link copied to clipboard
@ApiStatus.Experimental
open fun <SVC> serviceHandle(clazz: Class<SVC>): ClientServiceHandle<SVC>
Link copied to clipboard
@ApiStatus.Experimental
open fun <SVC> virtualObject(clazz: Class<SVC>, key: String): SVC
NOTE: To use scopes with virtual objects you must enable the additional experimental feature in restate-server, via RESTATE_EXPERIMENTAL_ENABLE_SCOPED_VIRTUAL_OBJECTS=true
Link copied to clipboard
@ApiStatus.Experimental
open fun <SVC> virtualObjectHandle(clazz: Class<SVC>, key: String): ClientServiceHandle<SVC>
NOTE: To use scopes with virtual objects you must enable the additional experimental feature in restate-server, via RESTATE_EXPERIMENTAL_ENABLE_SCOPED_VIRTUAL_OBJECTS=true
Link copied to clipboard
@ApiStatus.Experimental
open fun <SVC> workflow(clazz: Class<SVC>, key: String): SVC
Link copied to clipboard
@ApiStatus.Experimental
open fun <SVC> workflowHandle(clazz: Class<SVC>, key: String): ClientServiceHandle<SVC>