Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DLLObjectPoolOptions<Value>

Type parameters

  • Value

Hierarchy

  • DLLObjectPoolOptions

Properties

Readonly capacity

capacity: number

Capacity of the poll which represents the number of available objects.
When number of used objects goes beyond capacity, and exception will be thrown, preventing acquiring new resources.

Readonly constructor

constructor: ObjectConstructor<Value>

Function called when an object resource is acquired for the first time.

Readonly destructor

destructor: ObjectDestructor<Value>

Function called when an object resource is released.

Optional initialFreeShapes

initialFreeShapes: Undefinable<Value>[]

Array of pre-allocated object resources used by DLLObjectPool at it's creation.

Readonly initializer

initializer: ObjectInitializer<Value>

Function called when an object resource is free and needs to be reused (i.e. acquired again).