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

Function defaultOptions

lib/client-options.js:55–105  ·  view source on GitHub ↗

* @returns {ClientOptions}

()

Source from the content-addressed store, hash-verified

53 * @returns {ClientOptions}
54 */
55function defaultOptions () {
56 return ({
57 policies: {
58 addressResolution: policies.defaultAddressTranslator(),
59 loadBalancing: policies.defaultLoadBalancingPolicy(),
60 reconnection: policies.defaultReconnectionPolicy(),
61 retry: policies.defaultRetryPolicy(),
62 speculativeExecution: policies.defaultSpeculativeExecutionPolicy(),
63 timestampGeneration: policies.defaultTimestampGenerator()
64 },
65 queryOptions: {
66 fetchSize: 5000,
67 prepare: false,
68 captureStackTrace: false
69 },
70 protocolOptions: {
71 port: 9042,
72 maxSchemaAgreementWaitSeconds: 10,
73 maxVersion: 0,
74 noCompact: false
75 },
76 pooling: {
77 heartBeatInterval: 30000,
78 warmup: true
79 },
80 socketOptions: {
81 connectTimeout: 5000,
82 defunctReadTimeoutThreshold: 64,
83 keepAlive: true,
84 keepAliveDelay: 0,
85 readTimeout: 12000,
86 tcpNoDelay: true,
87 coalescingThreshold: 65536
88 },
89 authProvider: null,
90 requestTracker: null,
91 metrics: new metrics.DefaultMetrics(),
92 maxPrepared: 500,
93 refreshSchemaDelay: 1000,
94 isMetadataSyncEnabled: true,
95 prepareOnAllHosts: true,
96 rePrepareOnUp: true,
97 encoding: {
98 copyBuffer: true,
99 useUndefinedAsUnset: true
100 },
101 monitorReporting: {
102 enabled: true
103 }
104 });
105}
106
107/**
108 * Extends and validates the user options

Callers 7

extendFunction · 0.85
test-helper.jsFile · 0.85
getClientFakeFunction · 0.85
getClientFunction · 0.85
getClientFakeFunction · 0.85
newClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected