Amount of clients which are not reserved and currently idle in the pool.
Total amount of queued client requests when all clients are reserved. It is helpful to monitor this number to see if you need to adjust the size of the pool.
Reserve a client from the pool.
If the pool is full and all clients are currently reserved, this will wait in a FIFO queue until a client becomes available by it being released back to the pool.
If there are idle clients in the pool it will be returned.
If the pool is not full a new client will be created and connected.
Disconnect all clients from server after all pending requests performed. All currently reserved clients will not be returned to the pool and ended in-place after all pending requests performed.
If {force} set to truthy value - clients pending requests will not be awaited.
Current pool state.
Restore pool from disconnected state.
Generated using TypeDoc
Total capacity of the pool.