Optional
Readonly
capacityMaximum number of resources for this pool
Optional
Readonly
capacityMaximum number of users per resource. Defaults to 1
Optional
Readonly
debugIf true, additional logging will trace activity of pool. Default: false
Optional
Readonly
freeIf specified, this function will be called when a resource is disposed
Optional
Readonly
fullWhat to do if pool is full and a new resource allocation is requested.
Default is error
, throwing an error when pool is full.
Optional
Readonly
generateIf specified, this function will generate new resources as needed.
Optional
Readonly
resourcesIf above 0, resources with no users will be automatically removed after this interval. Default: disabled
Optional
Readonly
userIf above 0, users will be removed if there is no activity after this interval.
Activity is marked whenever use
us called with that user key.
Default: disabled
Pool options