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

Method setVersion

lib/stream-id-stack.js:88–91  ·  view source on GitHub ↗

* Sets the protocol version * @param {Number} version

(version)

Source from the content-addressed store, hash-verified

86 * @param {Number} version
87 */
88 setVersion(version) {
89 //128 or 32K stream ids depending on the protocol version
90 this.maxGroups = types.protocolVersion.uses2BytesStreamIds(version) ? maxGroupsFor2Bytes : 1;
91 }
92
93 /**
94 * Dequeues an id.

Callers 2

constructorMethod · 0.95
decreaseVersionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected