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

Method get_and_set_reconnection_handler

cassandra/pool.py:221–229  ·  view source on GitHub ↗

Atomically replaces the reconnection handler for this host. Intended for internal use only.

(self, new_handler)

Source from the content-addressed store, hash-verified

219 return self._reconnection_handler is not None
220
221 def get_and_set_reconnection_handler(self, new_handler):
222 """
223 Atomically replaces the reconnection handler for this
224 host. Intended for internal use only.
225 """
226 with self.lock:
227 old = self._reconnection_handler
228 self._reconnection_handler = new_handler
229 return old
230
231 def __eq__(self, other):
232 if isinstance(other, Host):

Callers 3

on_upMethod · 0.80
_start_reconnectorMethod · 0.80
on_removeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected