Policies that defined the behavior of a request when a server-side read/write timeout or unavailable error occurs.

Generators of client-side, microsecond-precision timestamps.

Requires Cassandra: 2.1+

Functions

CassTimestampGen *

cass_timestamp_gen_server_side_new

( )

Creates a new server-side timestamp generator. This generator allows Cassandra to assign timestamps server-side.

Note: This is the default timestamp generator.

Requires Cassandra: 2.1+

Returns:
Type Details
CassTimestampGen *

Returns a timestamp generator that must be freed.

See Also:
CassTimestampGen *

cass_timestamp_gen_monotonic_new

( )

Creates a new monotonically increasing timestamp generator with microsecond precision.

This implementation guarantees a monotonically increasing timestamp. If the timestamp generation rate exceeds one per microsecond or if the clock skews into the past the generator will artificially increment the previously generated timestamp until the request rate decreases or the clock skew is corrected.

By default, this timestamp generator will generate warnings if more than 1 second of clock skew is detected. It will print an error every second until the clock skew is resolved. These settings can be changed by using cass_timestamp_gen_monotonic_new_with_settings() to create the generator instance.

Note: This generator is thread-safe and can be shared by multiple sessions.

Requires Cassandra: 2.1+

Returns:
Type Details
CassTimestampGen *

Returns a timestamp generator that must be freed.

See Also:
void

cass_timestamp_gen_free

( timestamp_gen )

Frees a timestamp generator instance.

Requires Cassandra: 2.1+

Parameters:
Name Type Details
in timestamp_gen