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.

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.

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. This generates microsecond timestamps with the sub-millisecond part generated using a counter. The implementation guarantees that no more than 1000 timestamps will be generated for a given clock tick even if shared by multiple session objects. If that rate is exceeded then a warning is logged and timestamps stop incrementing until the next clock tick.

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

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.

Parameters:
Name Type Details
in timestamp_gen