Optional
opts: BaseConnectionPoolOptionsRest
...args: any[]Empties the connection pool.
Returns an alive connection if present,
otherwise returns a dead connection.
By default it filters the master
only nodes.
It uses the selector to choose which
connection return.
connection
Marks a connection as 'alive'.
If needed removes the connection from the dead list
and then resets the deadCount
.
Marks a connection as 'dead'.
If needed adds the connection to the dead list
and then increments the deadCount
.
Removes a new connection to the pool.
Update the ConnectionPool with new connections.
Generated using TypeDoc
Adds a new connection to the pool.
Returns