RPCConnection

Holds a proxy object implementing I that forwards requests to the RPC server. The server version can be queried via this interface.

Closeable.close may be used to shut down the connection and release associated resources. It is an alias for notifyServerAndClose.

Inheritors

Properties

Link copied to clipboard
abstract val proxy: I

Holds a synthetic class that automatically forwards method calls to the server, and returns the response.

Link copied to clipboard

The RPC protocol version reported by the server.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
abstract fun forceClose()

Closes this client without notifying the server.

Link copied to clipboard
abstract fun <T> getTelemetryHandle(telemetryClass: Class<T>): T?

Returns the configured openTelemetry global. Returns null if opentelemetry has not been configured.

Link copied to clipboard
abstract fun notifyServerAndClose()

Closes this client gracefully by sending a notification to the server, so it can immediately clean up resources. If the server is not available this method may block for a short period until it's clear the server is not coming back.