MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / borrowConnection

Method borrowConnection

lib/host.js:296–298  ·  view source on GitHub ↗

* Gets the least busy connection from the pool. * @param {Connection} [previousConnection] When provided, the pool should attempt to obtain a different connection. * @returns {Connection!} * @throws {Error} * @throws {BusyConnectionError} * @internal * @ignore

(previousConnection)

Source from the content-addressed store, hash-verified

294 * @ignore
295 */
296 borrowConnection(previousConnection) {
297 return this.pool.borrowConnection(previousConnection);
298 }
299
300 /**
301 * Creates all the connection in the pool.

Callers 5

_retryMethod · 0.45
_borrowHostConnectionMethod · 0.45
_borrowWithKeyspaceMethod · 0.45
getNextConnectionMethod · 0.45
host-tests.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected