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

Method getActiveConnection

lib/host.js:324–329  ·  view source on GitHub ↗

* Gets any connection that is already opened or null if not found. * @returns {Connection} * @internal * @ignore

()

Source from the content-addressed store, hash-verified

322 * @ignore
323 */
324 getActiveConnection() {
325 if (!this.isUp() || !this.pool.connections.length) {
326 return null;
327 }
328 return this.pool.connections[0];
329 }
330
331 /**
332 * Internal method to get the amount of responses dequeued in the last interval (between 200ms and 400ms) on all

Callers 2

setKeyspaceMethod · 0.80
host-tests.jsFile · 0.80

Calls 1

isUpMethod · 0.95

Tested by

no test coverage detected