struct CassFuture
The future result of an operation.
It can represent a result if the operation completed successfully or an error if the operation failed. It can be waited on, polled or a callback can be attached.
Functions
Frees a future instance. A future can be freed anytime.
CassError
cass_future_set_callback
(CassFuture *
future, CassFutureCallback
callback, void *
data )
Sets a callback that is called when a future is set
Gets the set status of the future.
Wait for the future to be set with either a result or error.
Important: Do not wait in a future callback. Waiting in a future callback will cause a deadlock.
Wait for the future to be set or timeout.
Gets the result of a successful future. If the future is not ready this method will wait for the future to be set.
Gets the error result from a future that failed as a result of a server error. If the future is not ready this method will wait for the future to be set.
Gets the result of a successful future. If the future is not ready this method will wait for the future to be set. The first successful call consumes the future, all subsequent calls will return NULL.
Gets the error code from future. If the future is not ready this method will wait for the future to be set.
void
cass_future_error_message
(CassFuture *
future, const char **
message, size_t *
message_length )
Gets the error message from future. If the future is not ready this method will wait for the future to be set.
Gets a the number of custom payload items from a response future. If the future is not ready this method will wait for the future to be set.
CassError
cass_future_custom_payload_item
(CassFuture *
future, size_t
index, const char **
name, size_t *
name_length, const cass_byte_t **
value, size_t *
value_size )
Gets a custom payload item from a response future at the specified index. If the future is not ready this method will wait for the future to be set.