ROPooledClassFactoryAttribute
Overview
Sets Pooling class factory for the incoming requests - a pool of instances will be maintained to server incoming requests.
Location
- Unit: uRORTTIAttributes.pas
- Ancestry: TCustomAttribute | ROPooledClassFactoryAttribute
Properties
PoolBehavior
Determines what happens when a request comes in and all pooled items are busy serving a call. You can choose one of three TROPoolBehavior options.
property PoolBehavior: ROPoolBehavior read
PoolSize
Determines how many items will be kept in the pool.
property PoolSize: Integer read
PreInitializePool
Determines whether the instances for all slots of the pool are created at startup (true) or if the pool will be filled on demand (false).
property PreInitializePool: Boolean read
Instance Methods
constructor Create
Creates an instance with provided parameters.
constructor Create(aPoolSize: Integer; aPoolBehavior: ROPoolBehavior = pbaCreateAdditional; aPreInitializePool: Boolean = False)
Parameters:
- aPoolSize: Determines how many items will be kept in the pool.
- aPoolBehavior: Determines what happens when a request comes in and all pooled items are busy serving a call. You can choose one of three TROPoolBehavior options.
- aPreInitializePool: Determines whether the instances for all slots of the pool are created at startup (true) or if the pool will be filled on demand (false).