| Package | Description |
|---|---|
| com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
| com.datastax.driver.core.policies |
Policies that allow to control some of the behavior of the DataStax Java driver for Cassandra.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AtomicMonotonicTimestampGenerator
A timestamp generator based on
System.currentTimeMillis(), with an incrementing atomic counter
to generate the sub-millisecond part. |
class |
ServerSideTimestampGenerator
A timestamp generator that always returns
Long.MIN_VALUE, in order to let Cassandra
assign server-side timestamps. |
class |
ThreadLocalMonotonicTimestampGenerator
A timestamp generator based on
System.currentTimeMillis(), with an incrementing thread-local counter
to generate the sub-millisecond part. |
| Modifier and Type | Field and Description |
|---|---|
static TimestampGenerator |
ServerSideTimestampGenerator.INSTANCE
The unique instance of this generator.
|
| Modifier and Type | Method and Description |
|---|---|
Cluster.Builder |
Cluster.Builder.withTimestampGenerator(TimestampGenerator timestampGenerator)
Configures the generator that will produce the client-side timestamp sent
with each query.
|
| Modifier and Type | Method and Description |
|---|---|
static TimestampGenerator |
Policies.defaultTimestampGenerator()
The default timestamp generator.
|
TimestampGenerator |
Policies.getTimestampGenerator()
The timestamp generator to use.
|
| Modifier and Type | Method and Description |
|---|---|
Policies.Builder |
Policies.Builder.withTimestampGenerator(TimestampGenerator timestampGenerator)
Sets the timestamp generator.
|