ROPooledClassFactoryAttribute

Overview

Sets Pooling class factory for the incoming requests - a pool of instances will be maintained to server incoming requests.

Location

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: TROPoolBehaviorAttribute 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: TROPoolBehaviorAttribute; aPreInitializePool: Boolean)

Parameters:

  • aPoolSize: [required] Determines how many items will be kept in the pool.
  • aPoolBehavior: [optional] 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: [optional] 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).