MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / connection_factory

Method connection_factory

cassandra/cluster.py:1629–1635  ·  view source on GitHub ↗

Called to create a new connection with proper configuration. Intended for internal use only.

(self, endpoint, *args, **kwargs)

Source from the content-addressed store, hash-verified

1627 self._max_connections_per_host[host_distance] = max_connections
1628
1629 def connection_factory(self, endpoint, *args, **kwargs):
1630 """
1631 Called to create a new connection with proper configuration.
1632 Intended for internal use only.
1633 """
1634 kwargs = self._make_connection_kwargs(endpoint, kwargs)
1635 return self.connection_class.factory(endpoint, self.connect_timeout, *args, **kwargs)
1636
1637 def _make_connection_factory(self, host, *args, **kwargs):
1638 kwargs = self._make_connection_kwargs(host.endpoint, kwargs)

Callers 7

_prepare_all_queriesMethod · 0.95
_try_connectMethod · 0.45
try_reconnectMethod · 0.45
__init__Method · 0.45
_replaceMethod · 0.45
__init__Method · 0.45

Calls 2

factoryMethod · 0.80

Tested by

no test coverage detected