Atomically replaces the reconnection handler for this host. Intended for internal use only.
(self, new_handler)
| 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): |
no outgoing calls
no test coverage detected