(self, row)
| 317 | self._init_index = -1 |
| 318 | |
| 319 | def create(self, row): |
| 320 | host_id = row.get("host_id") |
| 321 | if host_id is None: |
| 322 | raise ValueError("No host_id to create the SniEndPoint") |
| 323 | |
| 324 | self._init_index += 1 |
| 325 | return SniEndPoint(self._proxy_address, str(host_id), self._port, self._init_index) |
| 326 | |
| 327 | def create_from_sni(self, sni): |
| 328 | self._init_index += 1 |