withConfig method

Client withConfig(
  1. Map<String, Object> config
)

Returns a new Client instance with the specified client session configuration.

The config parameter is merged with any existing session config defined on the current client instance.

Equivalent to using the configure session command. For available configuration parameters refer to the Config documentation.

Implementation

Client withConfig(Map<String, Object> config) {
  return Client._create(
      _pool, _options.withSession(_options.session.withConfig(config)));
}