A subclass of :exc:`Timeout` for read operations. This indicates that the replicas failed to respond to the coordinator node before the configured timeout. This timeout is configured in ``cassandra.yaml`` with the ``read_request_timeout_in_ms`` and ``range_request_timeout_in_ms
| 458 | |
| 459 | |
| 460 | class ReadTimeout(Timeout): |
| 461 | """ |
| 462 | A subclass of :exc:`Timeout` for read operations. |
| 463 | |
| 464 | This indicates that the replicas failed to respond to the coordinator |
| 465 | node before the configured timeout. This timeout is configured in |
| 466 | ``cassandra.yaml`` with the ``read_request_timeout_in_ms`` |
| 467 | and ``range_request_timeout_in_ms`` options. |
| 468 | """ |
| 469 | |
| 470 | data_retrieved = None |
| 471 | """ |
| 472 | A boolean indicating whether the requested data was retrieved |
| 473 | by the coordinator from any replicas before it timed out the |
| 474 | operation |
| 475 | """ |
| 476 | |
| 477 | def __init__(self, message, data_retrieved=None, **kwargs): |
| 478 | Timeout.__init__(self, message, **kwargs) |
| 479 | self.data_retrieved = data_retrieved |
| 480 | |
| 481 | |
| 482 | class WriteTimeout(Timeout): |