Skip to content

com.github.manosbatsis.corda.rpc.poolboy.config / RpcConfigurationService

RpcConfigurationService

interface RpcConfigurationService

Provides RPC pool and connection information for nodes. Can be “fixed” or fully dynamic, e.g. based on a properties file or database connection respectively.

Functions

Name Summary
buildPoolKey abstract fun buildPoolKey(nodeName: String):PoolKey
Build a PoolKey for the given node name. Override to customise PoolKey.externalTrace and PoolKey.impersonatedActor
getAllRpcNodeParams abstract fun getAllRpcNodeParams(): Map<String,NodeParams>
Read-only snapshot of all RPC connection configuration (i.e. NodeParams) by “node name” per your configuration implementation, e.g. application.properties key, database primary key etc.
getCustomSerializers open fun getCustomSerializers(cordapPackages: List<String>): Set<SerializationCustomSerializer<*, *>>?
Custom serializer types found in the configured cordapp packages. Override to bypass classpath scanning and improve search discovery performance.
getGracefulReconnect open fun getGracefulReconnect(nodeParams:NodeParams): GracefulReconnect
Override to change the GracefulReconnect implementation to use when NodeParams.disableGracefulReconnect is false.
getNodeRpcConnectionConfig open fun getNodeRpcConnectionConfig(key:PoolKey):NodeRpcConnectionConfig
Get the RPC connection configuration for the given key. Override to customise further.
getRpcNodeParams abstract fun getRpcNodeParams(nodeName: String):NodeParams
Get the RPC connection configuration (i.e. NodeParams) corresponding to the given nodeName per your configuration implementation, e.g. application.properties key, database primary key etc.
getRpcPoolParams abstract fun getRpcPoolParams():PoolParams
Get the RPC pool configuration

Companion Object Properties

Name Summary
partyNameIsRequired const val partyNameIsRequired: String
rpcConnectionForNodeNotFound const val rpcConnectionForNodeNotFound: String