RpcState

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class RpcState(val endpoint: String = "", val creatable: Boolean = false)

Marks Cbor-serializable object that is used as RPC state and implements an interface exposed through RPC (and marked with RpcInterface annotation).

Properties

Link copied to clipboard
val creatable: Boolean = false

By default creatable is false, and RPC stub objects for this class are created only when they are returned by RPC methods. Set this to true to allow client to create RPC stub for this RPC state directly.

Link copied to clipboard

Path component for the URL used for RPC calls to this class. Must not contain '/'.