Elffuss BraidHub

kikocis/java-driver public

Fix SocketOptions doc.
Changeset3ddbf39029e8bb1b283cc5c0ce4133cf8fd6ee0b505a47fad5938073a4bd33a4
Authorolim7t <omichallat+github@gmail.com> · 2015-08-26 10:16 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2015-08-26 10:16 +02:00
Parents888bf5620c13

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/SocketOptions.java +3 −5
@@ -85,7 +85,7 @@
8585 * <p>
8686 * Please note that this is not the maximum time a call to {@link Session#execute} may block;
8787 * this is the maximum time that call will wait for one particular
88- * Cassandra host, but other hosts will be tried if one of them timeout. In
88+ * Cassandra host, but other hosts will be tried if one of them times out. In
8989 * other words, a {@link Session#execute} call may theoretically wait up to
9090 * {@code getReadTimeoutMillis() * <number_of_cassandra_hosts>} (though the
9191 * total number of hosts tried for a given query also depends on the
@@ -110,10 +110,8 @@
110110 * <p>
111111 * When setting this value, keep in mind the following:
112112 * <ul>
113- * <li>the timeout settings used on the Cassandra side ({@code *_request_timeout_in_ms}
114- * in {@code cassandra.yaml}) should be taken into account when picking a value for this
115- * read timeout. In particular, if this read timeout option is lower than Cassandra's
116- * timeout, <b>the driver might assume that the host is not responsive and mark it down.</b></li>
113+ * <li>it should be higher than the timeout settings used on the Cassandra side
114+ * ({@code *_request_timeout_in_ms} in {@code cassandra.yaml}).</li>
117115 * <li>the read timeout is only approximate and only control the timeout to one Cassandra
118116 * host, not the full query (see {@link #getReadTimeoutMillis} for more details). If a
119117 * high level of precision on the timeout to a request is required, you should use