Skip to content

Commit 830c3e5

Browse files
committed
Merge branch '2.0' into 2.1
2 parents 820273e + d7a6a3f commit 830c3e5

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

changelog/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Merged from 2.0 branch: everything up to 2.0.3 (included), and the following.
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.

driver-core/src/main/java/com/datastax/driver/core/NettyOptions.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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 @@ public class NettyOptions {
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 @@ public class NettyOptions {
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();

driver-core/src/main/java/com/datastax/driver/core/PerHostPercentileTracker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ public static class Builder {
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;

driver-core/src/main/java/com/datastax/driver/core/policies/DefaultRetryPolicy.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ public RetryDecision onWriteTimeout(Statement statement, ConsistencyLevel cl, Wr
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

0 commit comments

Comments
 (0)