ReconnectingRPCConnection

data class ReconnectingRPCConnection(val nodeHostAndPorts: List<<Error class: unknown class>>, val username: String, val password: String, val rpcConfiguration: CordaRPCClientConfiguration, val sslConfiguration: <Error class: unknown class>? = null, val classLoader: ClassLoader?, val gracefulReconnect: GracefulReconnect = GracefulReconnect(), val observersPool: ExecutorService) : RPCConnection<<Error class: unknown class>>

Helper class useful for reconnecting to a Node.

Constructors

Link copied to clipboard
constructor(nodeHostAndPorts: List<<Error class: unknown class>>, username: String, password: String, rpcConfiguration: CordaRPCClientConfiguration, sslConfiguration: <Error class: unknown class>? = null, classLoader: ClassLoader?, gracefulReconnect: GracefulReconnect = GracefulReconnect(), observersPool: ExecutorService)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val nodeHostAndPorts: List<<Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val proxy: <Error class: unknown class>

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

Link copied to clipboard
open override val serverProtocolVersion: Int

The RPC protocol version reported by the server.

Link copied to clipboard
val sslConfiguration: <Error class: unknown class>? = null
Link copied to clipboard

Functions

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

Closes this client without notifying the server.

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

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

Link copied to clipboard
Link copied to clipboard
open override 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.

Link copied to clipboard

Called on external error. Will block until the connection is established again.