Elffuss BraidHub

kikocis/java-driver public

Merge branch '2.0' into 2.1
Changeset266c9e364c038e18c171d054edf1a56603e7e43d4f12b145a6be755041c69e4e
Authorolim7t <omichallat+github@gmail.com> · 2015-11-10 18:33 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2015-11-10 18:33 +01:00
Parents5fd440f3fd9d, 17d4f1c4f29f

Browse the files at this changeset

4 files changed

modified changelog/README.md +1 −1
@@ -335,7 +335,7 @@
335335 - [bug] Make metadata parsing more lenient (JAVA-377, JAVA-391)
336336
337337
338-### 2.0.12 (in progress)
338+### 2.0.12
339339
340340 - [bug] JAVA-950: Fix Cluster.connect with a case-sensitive keyspace.
341341 - [improvement] JAVA-920: Downgrade "error creating pool" message to WARN.
modified driver-core/src/main/java/com/datastax/driver/core/NettyOptions.java +9 −10
@@ -68,7 +68,6 @@
6868 * and in particular for OSGi applications, it is likely that such a configuration would lead to
6969 * compile and/or runtime errors.</strong>
7070 *
71- * @jira_ticket JAVA-640
7271 * @since 2.0.10
7372 */
7473 public class NettyOptions {
@@ -79,7 +78,7 @@
7978 public static final NettyOptions DEFAULT_INSTANCE = new NettyOptions();
8079
8180 /**
82- * Return the {@link EventLoopGroup} instance to use.
81+ * Return the {@code EventLoopGroup} instance to use.
8382 * <p>
8483 * This hook is invoked only once at {@link Cluster} initialization;
8584 * the returned instance will be kept in use throughout the cluster lifecycle.
@@ -89,30 +88,30 @@
8988 * case implementors should also override {@link #onClusterClose(EventLoopGroup)}
9089 * to prevent the shared instance to be closed when the cluster is closed.
9190 * <p>
92- * The default implementation returns a new instance of {@link io.netty.channel.epoll.EpollEventLoopGroup}
91+ * The default implementation returns a new instance of {@code io.netty.channel.epoll.EpollEventLoopGroup}
9392 * if {@link NettyUtil#isEpollAvailable() epoll is available},
94- * or {@link NioEventLoopGroup} otherwise.
93+ * or {@code io.netty.channel.nio.NioEventLoopGroup} otherwise.
9594 *
96- * @param threadFactory The {@link ThreadFactory} to use when creating a new {@link EventLoopGroup} instance;
95+ * @param threadFactory The {@link ThreadFactory} to use when creating a new {@code EventLoopGroup} instance;
9796 * The driver will provide its own internal thread factory here.
9897 * It is safe to ignore it and use another thread factory.
99- * @return the {@link EventLoopGroup} instance to use.
98+ * @return the {@code EventLoopGroup} instance to use.
10099 */
101100 public EventLoopGroup eventLoopGroup(ThreadFactory threadFactory) {
102101 return NettyUtil.newEventLoopGroupInstance(threadFactory);
103102 }
104103
105104 /**
106- * Return the specific {@link SocketChannel} subclass to use.
105+ * Return the specific {@code SocketChannel} subclass to use.
107106 * <p>
108107 * This hook is invoked only once at {@link Cluster} initialization;
109108 * the returned instance will then be used each time the driver creates a new {@link Connection}
110109 * and configures a new instance of {@link Bootstrap} for it.
111110 * <p>
112- * The default implementation returns {@link io.netty.channel.epoll.EpollSocketChannel} if {@link NettyUtil#isEpollAvailable() epoll is available},
113- * or {@link NioSocketChannel} otherwise.
111+ * The default implementation returns {@code io.netty.channel.epoll.EpollSocketChannel} if {@link NettyUtil#isEpollAvailable() epoll is available},
112+ * or {@code io.netty.channel.socket.nio.NioSocketChannel} otherwise.
114113 *
115- * @return The {@link SocketChannel} subclass to use.
114+ * @return The {@code SocketChannel} subclass to use.
116115 */
117116 public Class<? extends SocketChannel> channelClass() {
118117 return NettyUtil.channelClass();
modified driver-core/src/main/java/com/datastax/driver/core/PerHostPercentileTracker.java +3 −3
@@ -119,12 +119,12 @@
119119 * resolution and separation. This must be an integer between 0 and 5.
120120 * <p>
121121 * If not set explicitly, this value defaults to 3.
122+ * <p>
123+ * See <a href="http://hdrhistogram.github.io/HdrHistogram/JavaDoc/org/HdrHistogram/Histogram.html">the HdrHistogram Javadocs</a>
124+ * for a more detailed explanation on how this parameter affects the resolution of recorded samples.
122125 *
123126 * @param numberOfSignificantValueDigits the new value.
124127 * @return this builder.
125- *
126- * @see <a href="http://hdrhistogram.github.io/HdrHistogram/JavaDoc/org/HdrHistogram/Histogram.html">the HdrHistogram Javadocs</a>
127- * for a more detailed explanation on how this parameter affects the resolution of recorded samples.
128128 */
129129 public Builder withNumberOfSignificantValueDigits(int numberOfSignificantValueDigits) {
130130 this.numberOfSignificantValueDigits = numberOfSignificantValueDigits;
modified driver-core/src/main/java/com/datastax/driver/core/policies/DefaultRetryPolicy.java +3 −2
@@ -110,8 +110,9 @@
110110 * unavailable exception.
111111 * <p>
112112 * This method triggers a retry iff no retry has been executed before
113- * (nbRetry == 0), with {@link RetryDecision#tryNextHost}, otherwise it
114- * throws an exception. The retry will be processed on the next host
113+ * (nbRetry == 0), with
114+ * {@link RetryPolicy.RetryDecision#tryNextHost(ConsistencyLevel) RetryDecision.tryNextHost(cl)},
115+ * otherwise it throws an exception. The retry will be processed on the next host
115116 * in the query plan according to the current Load Balancing Policy.
116117 * Where retrying on the same host in the event of an Unavailable exception
117118 * has almost no chance of success, if the first replica tried happens to