Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ArrayObjectPoolOptions<Value>

Type parameters

  • Value

Hierarchy

  • ArrayObjectPoolOptions

Properties

Optional Readonly capacity

capacity: number

Capacity of the poll.
When capacity is given, pool will behave as a static one, namely when it's size will exceed it's capacity, acquire operation will fail with an exception.
When capacity is not given, pool resources will grow dynamically with the clients needs, unless there is no available memory.

Readonly deInitializer

deInitializer: ObjectDeInitializer<Value>

Function called when an object resource is released.

Readonly initializer

initializer: ObjectInitializer<Value>

Function called in order to initialize resource.