Elffuss BraidHub

kikocis/java-driver public

Clarify meaning of "atomic batch" in Javadocs.
Changeset3b8b6fab7abf9a417dfc4e3a9c460fd589565af25962414e7734d569bfcebdc0
Authorolim7t <omichallat+github@gmail.com> · 2015-03-17 10:23 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2015-03-17 10:23 +01:00
Parents1e50cb6351fa

Browse the files at this changeset

2 files changed

modified driver-core/src/main/java/com/datastax/driver/core/BatchStatement.java +2 −1
@@ -43,7 +43,8 @@
4343 public enum Type {
4444 /**
4545 * A logged batch: Cassandra will first write the batch to its distributed batch log
46- * to ensure the atomicity of the batch.
46+ * to ensure the atomicity of the batch (atomicity meaning that if any statement in
47+ * the batch succeeds, all will eventually succeed).
4748 */
4849 LOGGED,
4950
modified driver-core/src/main/java/com/datastax/driver/core/WriteType.java +4 −1
@@ -26,7 +26,10 @@
2626 {
2727 /** A write to a single partition key. Such writes are guaranteed to be atomic and isolated. */
2828 SIMPLE,
29- /** A write to a multiple partition key that used the distributed batch log to ensure atomicity. */
29+ /**
30+ * A write to a multiple partition key that used the distributed batch log to ensure atomicity
31+ * (atomicity meaning that if any statement in the batch succeeds, all will eventually succeed).
32+ */
3033 BATCH,
3134 /** A write to a multiple partition key that doesn't use the distributed batch log. Atomicity for such writes is not guaranteed */
3235 UNLOGGED_BATCH,