pool-stats.d.ts 669 B

12345678910111213141516171819
  1. import Pool from "./pool"
  2. export default PoolStats
  3. declare class PoolStats {
  4. constructor(pool: Pool);
  5. /** Number of open socket connections in this pool. */
  6. connected: number;
  7. /** Number of open socket connections in this pool that do not have an active request. */
  8. free: number;
  9. /** Number of pending requests across all clients in this pool. */
  10. pending: number;
  11. /** Number of queued requests across all clients in this pool. */
  12. queued: number;
  13. /** Number of currently active requests across all clients in this pool. */
  14. running: number;
  15. /** Number of active, pending, or queued requests across all clients in this pool. */
  16. size: number;
  17. }