Page Contents

Home > @loopback/pooling

pooling package

@loopback/pooling

Classes

Class Description
[PoolingService](/doc/en/lb4/apidocs.pooling.poolingservice.html) 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)](/doc/en/lb4/apidocs.pooling.createpooledbindingfactory.html) Create a function to return a pooled binding factory
[getPooledValue(poolingService, requestCtx)](/doc/en/lb4/apidocs.pooling.getpooledvalue.html) Acquire a resource from the pooling service or pool

Interfaces

Interface Description
[Poolable](/doc/en/lb4/apidocs.pooling.poolable.html) Life cycle methods that a poolable resource can optionally implement so that they can be triggered by the pooling service
[PooledValue](/doc/en/lb4/apidocs.pooling.pooledvalue.html) Pooled resource instance
[PoolFactory](/doc/en/lb4/apidocs.pooling.poolfactory.html) Factory for the pooling service
[PoolingServiceOptions](/doc/en/lb4/apidocs.pooling.poolingserviceoptions.html) Options to configure a resource pool