com.github.manosbatsis.corda.rpc.poolboy.pool.client / CordaRpcClientFactory
CordaRpcClientFactory¶
class CordaRpcClientFactory : BaseKeyedPooledObjectFactory<PoolKey, CordaRPCClient>
Constructors¶
| Name | Summary |
|---|---|
| <init> | CordaRpcClientFactory(nodeParamsService:RpcConfigurationService) |
Properties¶
| Name | Summary |
|---|---|
| nodeParamsService | val nodeParamsService:RpcConfigurationService |
Functions¶
| Name | Summary |
|---|---|
| activateObject | fun activateObject(key:PoolKey, p: PooledObject<CordaRPCClient>): UnitReinitialize an instance to be returned by the pool. |
| create | fun create(key:PoolKey): CordaRPCClientCreate an instance that can be served by the pool. |
| destroyObject | fun destroyObject(key:PoolKey, p: PooledObject<CordaRPCClient>): UnitDestroy an instance no longer needed by the pool. |
| makeObject | fun makeObject(key:PoolKey): PooledObject<CordaRPCClient> |
| passivateObject | fun passivateObject(key:PoolKey, p: PooledObject<CordaRPCClient>): UnitUninitialize an instance to be returned to the idle object pool. |
| validateObject | fun validateObject(key:PoolKey, p: PooledObject<CordaRPCClient>): BooleanEnsures that the instance is safe to be returned by the pool. |
| wrap | fun wrap(value: CordaRPCClient): PooledObject<CordaRPCClient>Wrap the provided instance with an implementation of {@link PooledObject}. |