Page Contents
pooling package
Classes
Class | Description |
---|---|
PoolingService | A singleton service to maintain a pool of resources. This pool service can be bound to different keys to represent multiple pools. Each binding is a singleton so that the state stays the same for injections into multiple instances for other artifacts. |
Functions
Function | Description |
---|---|
createPooledBindingFactory(bindingAddress) | Create a function to return a pooled binding factory |
getPooledValue(poolingService, requestCtx) | Acquire a resource from the pooling service or pool |
Interfaces
Interface | Description |
---|---|
Poolable | Life cycle methods that a poolable resource can optionally implement so that they can be triggered by the pooling service |
PooledValue | Pooled resource instance |
PoolFactory | Factory for the pooling service |
PoolingServiceOptions | Options to configure a resource pool |