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

Method increaseSize

lib/host-connection-pool.js:363–368  ·  view source on GitHub ↗

* Increases the size of the connection pool in the background, if needed.

()

Source from the content-addressed store, hash-verified

361 * Increases the size of the connection pool in the background, if needed.
362 */
363 increaseSize() {
364 if (this.connections.length < this.coreConnectionsLength && !this.hasScheduledNewConnection()) {
365 // schedule the next connection in the background
366 this.scheduleNewConnectionAttempt(0);
367 }
368 }
369
370 /**
371 * Gets the amount of responses and resets the internal counter.

Callers 2

initializePoolMethod · 0.80
_onNewConnectionOpenMethod · 0.80

Tested by

no test coverage detected