An asynchronous response delivery mechanism that is returned from calls to :meth:`.Session.execute_async()`. There are two ways for results to be delivered: - Synchronously, by calling :meth:`.result()` - Asynchronously, by attaching callback and errback functions via
| 4324 | |
| 4325 | |
| 4326 | class ResponseFuture(object): |
| 4327 | """ |
| 4328 | An asynchronous response delivery mechanism that is returned from calls |
| 4329 | to :meth:`.Session.execute_async()`. |
| 4330 | |
| 4331 | There are two ways for results to be delivered: |
| 4332 | - Synchronously, by calling :meth:`.result()` |
| 4333 | - Asynchronously, by attaching callback and errback functions via |
| 4334 | :meth:`.add_callback()`, :meth:`.add_errback()`, and |
| 4335 | :meth:`.add_callbacks()`. |
| 4336 | """ |
| 4337 | |
| 4338 | query = None |
| 4339 | """ |
| 4340 | The :class:`~.Statement` instance that is being executed through this |
| 4341 | :class:`.ResponseFuture`. |
| 4342 | """ |
| 4343 | |
| 4344 | is_schema_agreed = True |
| 4345 | """ |
| 4346 | For DDL requests, this may be set ``False`` if the schema agreement poll after the response fails. |
| 4347 | |
| 4348 | Always ``True`` for non-DDL requests. |
| 4349 | """ |
| 4350 | |
| 4351 | request_encoded_size = None |
| 4352 | """ |
| 4353 | Size of the request message sent |
| 4354 | """ |
| 4355 | |
| 4356 | coordinator_host = None |
| 4357 | """ |
| 4358 | The host from which we received a response |
| 4359 | """ |
| 4360 | |
| 4361 | attempted_hosts = None |
| 4362 | """ |
| 4363 | A list of hosts tried, including all speculative executions, retries, and pages |
| 4364 | """ |
| 4365 | |
| 4366 | session = None |
| 4367 | row_factory = None |
| 4368 | message = None |
| 4369 | default_timeout = None |
| 4370 | |
| 4371 | _retry_policy = None |
| 4372 | _profile_manager = None |
| 4373 | |
| 4374 | _req_id = None |
| 4375 | _final_result = _NOT_SET |
| 4376 | _col_names = None |
| 4377 | _col_types = None |
| 4378 | _final_exception = None |
| 4379 | _query_traces = None |
| 4380 | _callbacks = None |
| 4381 | _errbacks = None |
| 4382 | _current_host = None |
| 4383 | _connection = None |