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

Method getInFlight

lib/host-connection-pool.js:86–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 getInFlight() {
87 const length = this.connections.length;
88 if (length === 1) {
89 return this.connections[0].getInFlight();
90 }
91
92 let sum = 0;
93 for (let i = 0; i < length; i++) {
94 sum += this.connections[i].getInFlight();
95 }
96 return sum;
97 }
98
99 /**
100 * Gets the least busy connection from the pool.

Callers 3

borrowConnectionMethod · 0.45
minInFlightMethod · 0.45
drainAndShutdownMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected