com.github.manosbatsis.corda.rpc.poolboy / PoolBoyConnection
PoolBoyConnection¶
interface PoolBoyConnection
RPC connection pooling for a specific node
Functions¶
| Name | Summary |
|---|---|
| borrowConnection | abstract fun borrowConnection():NodeRpcConnectionOnly 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): UnitOnly 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):ARun some code with with a NodeRpcConnection from the pool in-context using the preconfigured key |
Inheritors¶
| Name | Summary |
|---|---|
| PoolBoyNonPooledConnection | open class PoolBoyNonPooledConnection :PoolBoyConnectionNon-pooled PoolBoyConnection adapter implementation for legacy apps using a “static” NodeRpcConnection |
| PoolBoyPooledConnection | class PoolBoyPooledConnection :PoolBoyConnectionRegular, pooled PoolBoyConnection implementation |