@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
88 lines (43 loc) • 1.58 kB
Markdown
---
lang: en
title: 'API docs: pooling.poolingserviceoptions'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/pooling
permalink: /doc/en/lb4/apidocs.pooling.poolingserviceoptions.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/pooling](./pooling.md) > [PoolingServiceOptions](./pooling.poolingserviceoptions.md)
## PoolingServiceOptions interface
Options to configure a resource pool
**Signature:**
```typescript
export interface PoolingServiceOptions<T>
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[factory](./pooling.poolingserviceoptions.factory.md)
</td><td markdown="1">
</td><td markdown="1">
[PoolFactory](./pooling.poolfactory.md)<!-- --><T> \| ((ctx: [Context](./context.context.md)<!-- -->) => [PoolFactory](./pooling.poolfactory.md)<!-- --><T>)
</td><td markdown="1">
A factory to create/destroy/validate resources for the pool or a function to create a factory for the given context
</td></tr>
<tr><td markdown="1">
[poolOptions?](./pooling.poolingserviceoptions.pooloptions.md)
</td><td markdown="1">
</td><td markdown="1">
Options
</td><td markdown="1">
_(Optional)_ Options for the generic pool
</td></tr>
</tbody></table>