Elffuss BraidHub

kikocis/java-driver public

Remove deprecated methods.
Changeset46b106bbaaab70afa2503f24f4deb8293afcd8670a1f66cf8f49b6d0a664adfa
AuthorAlexandre Dutra <alexandre.dutra@datastax.com> · 2015-12-26 11:28 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2016-01-04 18:04 +01:00
Parents584976b4bce4

Browse the files at this changeset

6 files changed

modified driver-core/src/main/java/com/datastax/driver/core/PoolingOptions.java +0 −51
@@ -509,55 +509,4 @@
509509 distance, core, max));
510510 }
511511
512- /**
513- * @deprecated this option isn't used anymore with the current pool resizing algorithm.
514- */
515- @Deprecated
516- public int getMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance) {
517- return 0;
518- }
519-
520- /**
521- * @deprecated this option isn't used anymore with the current pool resizing algorithm.
522- */
523- @Deprecated
524- public synchronized PoolingOptions setMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance, int newMinSimultaneousRequests) {
525- return this;
526- }
527-
528- /**
529- * @deprecated this method has been renamed to {@link #getNewConnectionThreshold(HostDistance)}. This method calls the new one internally,
530- * but you should use the new one in your code.
531- */
532- @Deprecated
533- public int getMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance) {
534- return getNewConnectionThreshold(distance);
535- }
536-
537- /**
538- * @deprecated this method has been renamed to {@link #setNewConnectionThreshold(HostDistance, int)}. This method calls the new one
539- * internally, but you should use the new one in your code.
540- */
541- @Deprecated
542- public PoolingOptions setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance, int newMaxSimultaneousRequests) {
543- return this.setNewConnectionThreshold(distance, newMaxSimultaneousRequests);
544- }
545-
546- /**
547- * @deprecated this method has been renamed to {@link #getMaxRequestsPerConnection(HostDistance)}. This method calls the new one internally,
548- * but you should use the new one in your code.
549- */
550- @Deprecated
551- public int getMaxSimultaneousRequestsPerHostThreshold(HostDistance distance) {
552- return this.getMaxRequestsPerConnection(distance);
553- }
554-
555- /**
556- * @deprecated this method has been renamed to {@link #setMaxRequestsPerConnection(HostDistance, int)}. This method calls the new one internally,
557- * but you should use the new one in your code.
558- */
559- @Deprecated
560- public PoolingOptions setMaxSimultaneousRequestsPerHostThreshold(HostDistance distance, int newMaxRequests) {
561- return this.setMaxRequestsPerConnection(distance, newMaxRequests);
562- }
563512 }
modified driver-core/src/main/java/com/datastax/driver/core/ProtocolOptions.java +0 −9
@@ -142,15 +142,6 @@
142142 this.authProvider = authProvider;
143143 }
144144
145- /**
146- * @throws IllegalArgumentException if {@code protocolVersion} does not correspond to any known version.
147- * @deprecated This is provided for backward compatibility; use {@link #ProtocolOptions(int, ProtocolVersion, int, SSLOptions, AuthProvider))} instead.
148- */
149- @Deprecated
150- public ProtocolOptions(int port, int protocolVersion, SSLOptions sslOptions, AuthProvider authProvider) {
151- this(port, ProtocolVersion.fromInt(protocolVersion), DEFAULT_MAX_SCHEMA_AGREEMENT_WAIT_SECONDS, sslOptions, authProvider);
152- }
153-
154145 void register(Cluster.Manager manager) {
155146 this.manager = manager;
156147 }
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/InvalidConfigurationInQueryException.java +0 −8
@@ -28,14 +28,6 @@
2828
2929 private static final long serialVersionUID = 0;
3030
31- /**
32- * @deprecated This constructor is kept for backwards compatibility.
33- */
34- @Deprecated
35- public InvalidConfigurationInQueryException(String msg) {
36- this(null, msg);
37- }
38-
3931 public InvalidConfigurationInQueryException(InetSocketAddress address, String msg) {
4032 super(address, msg);
4133 }
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/SyntaxError.java +0 −8
@@ -27,14 +27,6 @@
2727
2828 private final InetSocketAddress address;
2929
30- /**
31- * @deprecated This constructor is kept for backwards compatibility.
32- */
33- @Deprecated
34- public SyntaxError(String msg) {
35- this(null, msg);
36- }
37-
3830 public SyntaxError(InetSocketAddress address, String msg) {
3931 super(msg);
4032 this.address = address;
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/TruncateException.java +0 −8
@@ -27,14 +27,6 @@
2727
2828 private final InetSocketAddress address;
2929
30- /**
31- * @deprecated This constructor is kept for backwards compatibility.
32- */
33- @Deprecated
34- public TruncateException(String msg) {
35- this(null, msg);
36- }
37-
3830 public TruncateException(InetSocketAddress address, String msg) {
3931 super(msg);
4032 this.address = address;
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/UnauthorizedException.java +0 −8
@@ -28,14 +28,6 @@
2828
2929 private final InetSocketAddress address;
3030
31- /**
32- * @deprecated This constructor is kept for backwards compatibility.
33- */
34- @Deprecated
35- public UnauthorizedException(String msg) {
36- this(null, msg);
37- }
38-
3931 public UnauthorizedException(InetSocketAddress address, String msg) {
4032 super(msg);
4133 this.address = address;