corda / net.corda.client.rpc / CordaRPCConnection

CordaRPCConnection

class CordaRPCConnection : RPCConnection<CordaRPCOps>

This class is essentially just a wrapper for an RPCConnection and can be treated identically.

See Also

RPCConnection

Properties

proxy

val proxy: CordaRPCOps

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

serverProtocolVersion

val serverProtocolVersion: Int

The RPC protocol version reported by the server.

Functions

forceClose

fun forceClose(): Unit

Closes this client without notifying the server.

notifyServerAndClose

fun notifyServerAndClose(): Unit

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.

Inherited Functions

close

open fun close(): Unit

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.