Skip to content

com.github.manosbatsis.corda.rpc.poolboy / PoolBoyConnection

PoolBoyConnection

interface PoolBoyConnection

RPC connection pooling for a specific node

Functions

Name Summary
borrowConnection abstract fun borrowConnection():NodeRpcConnection
Only use if you know what you are doing. Explicitly borrow a NodeRpcConnection from the pool using the preconfigured key.
returnConnection abstract fun returnConnection(rpcConnection:NodeRpcConnection): Unit
Only use if you know what you are doing. Explicitly return a NodeRpcConnection from the pool using the preconfigured key.
withConnection open fun <A> withConnection(block: (NodeRpcConnection) ->A):A
Run some code with with a NodeRpcConnection from the pool in-context using the preconfigured key

Inheritors

Name Summary
PoolBoyNonPooledConnection open class PoolBoyNonPooledConnection :PoolBoyConnection
Non-pooled PoolBoyConnection adapter implementation for legacy apps using a “static” NodeRpcConnection
PoolBoyPooledConnection class PoolBoyPooledConnection :PoolBoyConnection
Regular, pooled PoolBoyConnection implementation