kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 266c9e364c038e18c171d054edf1a56603e7e43d4f12b145a6be755041c69e4e |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-11-10 18:33 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-11-10 18:33 +01:00 |
| Parents | 5fd440f3fd9d, 17d4f1c4f29f |
4 files changed
modified changelog/README.md +1 −1
| @@ -335,7 +335,7 @@ | ||
| 335 | 335 | - [bug] Make metadata parsing more lenient (JAVA-377, JAVA-391) |
| 336 | 336 | |
| 337 | 337 | |
| 338 | -### 2.0.12 (in progress) | |
| 338 | +### 2.0.12 | |
| 339 | 339 | |
| 340 | 340 | - [bug] JAVA-950: Fix Cluster.connect with a case-sensitive keyspace. |
| 341 | 341 | - [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 @@ | ||
| 68 | 68 | * and in particular for OSGi applications, it is likely that such a configuration would lead to |
| 69 | 69 | * compile and/or runtime errors.</strong> |
| 70 | 70 | * |
| 71 | - * @jira_ticket JAVA-640 | |
| 72 | 71 | * @since 2.0.10 |
| 73 | 72 | */ |
| 74 | 73 | public class NettyOptions { |
| @@ -79,7 +78,7 @@ | ||
| 79 | 78 | public static final NettyOptions DEFAULT_INSTANCE = new NettyOptions(); |
| 80 | 79 | |
| 81 | 80 | /** |
| 82 | - * Return the {@link EventLoopGroup} instance to use. | |
| 81 | + * Return the {@code EventLoopGroup} instance to use. | |
| 83 | 82 | * <p> |
| 84 | 83 | * This hook is invoked only once at {@link Cluster} initialization; |
| 85 | 84 | * the returned instance will be kept in use throughout the cluster lifecycle. |
| @@ -89,30 +88,30 @@ | ||
| 89 | 88 | * case implementors should also override {@link #onClusterClose(EventLoopGroup)} |
| 90 | 89 | * to prevent the shared instance to be closed when the cluster is closed. |
| 91 | 90 | * <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} | |
| 93 | 92 | * if {@link NettyUtil#isEpollAvailable() epoll is available}, |
| 94 | - * or {@link NioEventLoopGroup} otherwise. | |
| 93 | + * or {@code io.netty.channel.nio.NioEventLoopGroup} otherwise. | |
| 95 | 94 | * |
| 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; | |
| 97 | 96 | * The driver will provide its own internal thread factory here. |
| 98 | 97 | * 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. | |
| 100 | 99 | */ |
| 101 | 100 | public EventLoopGroup eventLoopGroup(ThreadFactory threadFactory) { |
| 102 | 101 | return NettyUtil.newEventLoopGroupInstance(threadFactory); |
| 103 | 102 | } |
| 104 | 103 | |
| 105 | 104 | /** |
| 106 | - * Return the specific {@link SocketChannel} subclass to use. | |
| 105 | + * Return the specific {@code SocketChannel} subclass to use. | |
| 107 | 106 | * <p> |
| 108 | 107 | * This hook is invoked only once at {@link Cluster} initialization; |
| 109 | 108 | * the returned instance will then be used each time the driver creates a new {@link Connection} |
| 110 | 109 | * and configures a new instance of {@link Bootstrap} for it. |
| 111 | 110 | * <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. | |
| 114 | 113 | * |
| 115 | - * @return The {@link SocketChannel} subclass to use. | |
| 114 | + * @return The {@code SocketChannel} subclass to use. | |
| 116 | 115 | */ |
| 117 | 116 | public Class<? extends SocketChannel> channelClass() { |
| 118 | 117 | return NettyUtil.channelClass(); |
modified driver-core/src/main/java/com/datastax/driver/core/PerHostPercentileTracker.java +3 −3
| @@ -119,12 +119,12 @@ | ||
| 119 | 119 | * resolution and separation. This must be an integer between 0 and 5. |
| 120 | 120 | * <p> |
| 121 | 121 | * 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. | |
| 122 | 125 | * |
| 123 | 126 | * @param numberOfSignificantValueDigits the new value. |
| 124 | 127 | * @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. | |
| 128 | 128 | */ |
| 129 | 129 | public Builder withNumberOfSignificantValueDigits(int numberOfSignificantValueDigits) { |
| 130 | 130 | this.numberOfSignificantValueDigits = numberOfSignificantValueDigits; |
modified driver-core/src/main/java/com/datastax/driver/core/policies/DefaultRetryPolicy.java +3 −2
| @@ -110,8 +110,9 @@ | ||
| 110 | 110 | * unavailable exception. |
| 111 | 111 | * <p> |
| 112 | 112 | * 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 | |
| 115 | 116 | * in the query plan according to the current Load Balancing Policy. |
| 116 | 117 | * Where retrying on the same host in the event of an Unavailable exception |
| 117 | 118 | * has almost no chance of success, if the first replica tried happens to |