constructor (
    channel,
    errorHandler,
    address,
    log,
    disableLosslessIntegers = false,
    serversideRouting = null,
    chunker, // to be removed,
    notificationFilter,
    protocolSupplier,
    telemetryDisabled,
    ssrCallback = (_) => {}
  ) {
    super(errorHandler)
    this._authToken = null
    this._idle = false
    this._reseting = false
    this._resetObservers = []
    this._id = idGenerator++
    this._address = address
    this._server = { address: address.asHostPort() }
    this._creationTimestamp = Date.now()
    this._disableLosslessIntegers = disableLosslessIntegers
    this._ch = channel
    this._chunker = chunker
    this._log = createConnectionLogger(this, log)
    this._serversideRouting = serversideRouting
    this._notificationFilter = notificationFilter
    this._telemetryDisabledDriverConfig = telemetryDisabled === true
    this._telemetryDisabledConnection = true
    this._ssrCallback = ssrCallback

    // connection from the database, returned in response for HELLO message and might not be available
    this._dbConnectionId = null

    // bolt protocol is initially not initialized
    /**
     * @private
     * @type {BoltProtocol}
     */
    this._protocol = protocolSupplier(this)

    // Set to true on fatal errors, to get this out of connection pool.
    this._isBroken = false

    if (this._log.isDebugEnabled()) {
      this._log.debug(`created towards ${address}`)
    }
  }
@constructor
@param {Channel} channel - channel with a 'write' function and a 'onmessage' callback property.
@param {ConnectionErrorHandler} errorHandler the error handler.
@param {ServerAddress} address - the server address to connect to.
@param {Logger} log - the configured logger.
@param {boolean} disableLosslessIntegers - if this connection should convert all received integers to native JS numbers.
@param {Chunker} chunker - the chunker
@param protocolSupplier - Bolt protocol supplier
@param {boolean} telemetryDisabled - wether telemetry has been disabled in driver config.
@param ssrCallback - callback function used to update the counts of ssr enabled and disabled connections.