ScopedKotlinClient

@ApiStatus.Experimental
class ScopedKotlinClient

Deprecated

Use the extension methods on ScopedClient, obtained via client.scope(scopeKey).

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

Use the extension methods on the platform ScopedClient instead, obtained via client.scope(scopeKey).

Functions

Link copied to clipboard
@ApiStatus.Experimental
inline fun <SVC : Any> service(): SVC
Link copied to clipboard
@ApiStatus.Experimental
inline fun <SVC : Any> toService(): KClientRequestBuilder<SVC>
Link copied to clipboard
@ApiStatus.Experimental
inline fun <SVC : Any> toVirtualObject(key: String): KClientRequestBuilder<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
inline fun <SVC : Any> toWorkflow(key: String): KClientRequestBuilder<SVC>
Link copied to clipboard
@ApiStatus.Experimental
inline fun <SVC : Any> virtualObject(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
inline fun <SVC : Any> workflow(key: String): SVC