com.github.manosbatsis.corda.rpc.poolboy / PoolBoyPooledConnection
PoolBoyPooledConnection¶
class PoolBoyPooledConnection :
PoolBoyConnection
Regular, pooled PoolBoyConnection implementation
Constructors¶
Name | Summary |
---|---|
<init> | PoolBoyPooledConnection(poolBoy: PoolBoy , key: PoolKey ) Regular, pooled PoolBoyConnection implementation |
Properties¶
Name | Summary |
---|---|
key | val key: PoolKey |
poolBoy | val poolBoy: PoolBoy |
Functions¶
Name | Summary |
---|---|
borrowConnection | fun borrowConnection(): NodeRpcConnection Only use if you know what you are doing. Explicitly borrow a NodeRpcConnection from the pool using the preconfigured key. |
returnConnection | 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. |
Inherited Functions¶
Name | Summary |
---|---|
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 |