Elffuss BraidHub

kikocis/java-driver public

JAVA-1074: Fix documentation around default timestamp generator.
Changeset0ad7640b1a921556515e9d7497325e89457f3f5d95e62e9647fb19546055a332
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-02-10 11:33 -06:00
Committerolim7t <omichallat+github@gmail.com> · 2016-04-19 12:05 +02:00
Parents7fc038fde76e

Browse the files at this changeset

3 files changed

modified changelog/README.md +1 −0
@@ -6,6 +6,7 @@
66 - [improvement] JAVA-1040: SimpleStatement parameters support in QueryLogger.
77 - [improvement] JAVA-1151: Fail fast if HdrHistogram is not in the classpath.
88 - [improvement] JAVA-1154: Allow individual Statement to cancel the read timeout.
9+- [bug] JAVA-1074: Fix documentation around default timestamp generator.
910
1011 Merged from 2.1 branch:
1112
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −2
@@ -1018,8 +1018,8 @@
10181018 * generated server-side, and setting a generator through this method will have
10191019 * no effect.
10201020 * <p/>
1021- * If no generator is set through this method, the driver will default to the
1022- * legacy server-side behavior by using {@link ServerSideTimestampGenerator}.
1021+ * If no generator is set through this method, the driver will default to
1022+ * client-side timestamps by using {@link AtomicMonotonicTimestampGenerator}.
10231023 *
10241024 * @param timestampGenerator the generator to use.
10251025 * @return this Builder.
modified driver-core/src/main/java/com/datastax/driver/core/policies/Policies.java +1 −2
@@ -16,7 +16,6 @@
1616 package com.datastax.driver.core.policies;
1717
1818 import com.datastax.driver.core.AtomicMonotonicTimestampGenerator;
19-import com.datastax.driver.core.ServerSideTimestampGenerator;
2019 import com.datastax.driver.core.TimestampGenerator;
2120 import com.google.common.base.Objects;
2221
@@ -115,7 +114,7 @@
115114 /**
116115 * The default timestamp generator.
117116 * <p/>
118- * This is an instance of {@link ServerSideTimestampGenerator}.
117+ * This is an instance of {@link AtomicMonotonicTimestampGenerator}.
119118 *
120119 * @return the default timestamp generator.
121120 */