@@ -71,9 +71,6 @@ public final class MySqlConnectionConfiguration {
7171 @ Nullable
7272 private final Duration connectTimeout ;
7373
74- @ Nullable
75- private final Duration socketTimeout ;
76-
7774 @ Nullable
7875 private final ZoneId serverZoneId ;
7976
@@ -108,7 +105,7 @@ public final class MySqlConnectionConfiguration {
108105 private MySqlConnectionConfiguration (
109106 boolean isHost , String domain , int port , MySqlSslConfiguration ssl ,
110107 boolean tcpKeepAlive , boolean tcpNoDelay , @ Nullable Duration connectTimeout ,
111- @ Nullable Duration socketTimeout , ZeroDateOption zeroDateOption , @ Nullable ZoneId serverZoneId ,
108+ ZeroDateOption zeroDateOption , @ Nullable ZoneId serverZoneId ,
112109 String user , @ Nullable CharSequence password , @ Nullable String database ,
113110 boolean createDatabaseIfNotExist , @ Nullable Predicate <String > preferPrepareStatement ,
114111 @ Nullable Path loadLocalInfilePath , int localInfileBufferSize ,
@@ -121,7 +118,6 @@ private MySqlConnectionConfiguration(
121118 this .tcpKeepAlive = tcpKeepAlive ;
122119 this .tcpNoDelay = tcpNoDelay ;
123120 this .connectTimeout = connectTimeout ;
124- this .socketTimeout = socketTimeout ;
125121 this .ssl = ssl ;
126122 this .serverZoneId = serverZoneId ;
127123 this .zeroDateOption = requireNonNull (zeroDateOption , "zeroDateOption must not be null" );
@@ -164,16 +160,6 @@ Duration getConnectTimeout() {
164160 return connectTimeout ;
165161 }
166162
167- /**
168- * @deprecated This option has been deprecated as of version 1.0.1, because it has no effect and serves no purpose.
169- * Please remove any references to this option from your code, as it will be removed in a future release.
170- */
171- @ Nullable
172- @ Deprecated
173- Duration getSocketTimeout () {
174- return socketTimeout ;
175- }
176-
177163 MySqlSslConfiguration getSsl () {
178164 return ssl ;
179165 }
@@ -259,7 +245,6 @@ public boolean equals(Object o) {
259245 tcpKeepAlive == that .tcpKeepAlive &&
260246 tcpNoDelay == that .tcpNoDelay &&
261247 Objects .equals (connectTimeout , that .connectTimeout ) &&
262- Objects .equals (socketTimeout , that .socketTimeout ) &&
263248 Objects .equals (serverZoneId , that .serverZoneId ) &&
264249 zeroDateOption == that .zeroDateOption &&
265250 user .equals (that .user ) &&
@@ -278,7 +263,7 @@ public boolean equals(Object o) {
278263 @ Override
279264 public int hashCode () {
280265 return Objects .hash (isHost , domain , port , ssl , tcpKeepAlive , tcpNoDelay , connectTimeout ,
281- socketTimeout , serverZoneId , zeroDateOption , user , password , database , createDatabaseIfNotExist ,
266+ serverZoneId , zeroDateOption , user , password , database , createDatabaseIfNotExist ,
282267 preferPrepareStatement , loadLocalInfilePath , localInfileBufferSize , queryCacheSize ,
283268 prepareCacheSize , extensions , passwordPublisher );
284269 }
@@ -287,8 +272,8 @@ public int hashCode() {
287272 public String toString () {
288273 if (isHost ) {
289274 return "MySqlConnectionConfiguration{host='" + domain + "', port=" + port + ", ssl=" + ssl +
290- ", tcpNoDelay=" + tcpNoDelay + ", tcpKeepAlive=" + tcpKeepAlive + ", connectTimeout=" +
291- connectTimeout + ", socketTimeout =" + socketTimeout + ", serverZoneId=" + serverZoneId +
275+ ", tcpNoDelay=" + tcpNoDelay + ", tcpKeepAlive=" + tcpKeepAlive +
276+ ", connectTimeout =" + connectTimeout + ", serverZoneId=" + serverZoneId +
292277 ", zeroDateOption=" + zeroDateOption + ", user='" + user + "', password=" + password +
293278 ", database='" + database + "', createDatabaseIfNotExist=" + createDatabaseIfNotExist +
294279 ", preferPrepareStatement=" + preferPrepareStatement +
@@ -298,8 +283,8 @@ public String toString() {
298283 ", extensions=" + extensions + ", passwordPublisher=" + passwordPublisher + '}' ;
299284 }
300285
301- return "MySqlConnectionConfiguration{unixSocket='" + domain + "', connectTimeout=" +
302- connectTimeout + ", socketTimeout =" + socketTimeout + ", serverZoneId=" + serverZoneId +
286+ return "MySqlConnectionConfiguration{unixSocket='" + domain +
287+ "', connectTimeout =" + connectTimeout + ", serverZoneId=" + serverZoneId +
303288 ", zeroDateOption=" + zeroDateOption + ", user='" + user + "', password=" + password +
304289 ", database='" + database + "', createDatabaseIfNotExist=" + createDatabaseIfNotExist +
305290 ", preferPrepareStatement=" + preferPrepareStatement +
@@ -332,9 +317,6 @@ public static final class Builder {
332317 @ Nullable
333318 private Duration connectTimeout ;
334319
335- @ Nullable
336- private Duration socketTimeout ;
337-
338320 private String user ;
339321
340322 private ZeroDateOption zeroDateOption = ZeroDateOption .USE_NULL ;
@@ -410,7 +392,7 @@ public MySqlConnectionConfiguration build() {
410392 MySqlSslConfiguration ssl = MySqlSslConfiguration .create (sslMode , tlsVersion , sslHostnameVerifier ,
411393 sslCa , sslKey , sslKeyPassword , sslCert , sslContextBuilderCustomizer );
412394 return new MySqlConnectionConfiguration (isHost , domain , port , ssl , tcpKeepAlive , tcpNoDelay ,
413- connectTimeout , socketTimeout , zeroDateOption , serverZoneId , user , password , database ,
395+ connectTimeout , zeroDateOption , serverZoneId , user , password , database ,
414396 createDatabaseIfNotExist , preferPrepareStatement , loadLocalInfilePath ,
415397 localInfileBufferSize , queryCacheSize , prepareCacheSize ,
416398 Extensions .from (extensions , autodetectExtensions ), passwordPublisher );
@@ -510,22 +492,6 @@ public Builder connectTimeout(@Nullable Duration connectTimeout) {
510492 return this ;
511493 }
512494
513- /**
514- * Configure the socket timeout, only for compatibility with {@code socketTimeout} property in the
515- * JDBC driver. In fact, {@code SO_TIMEOUT} has effect only for OIO socket transport. Default no
516- * timeout.
517- *
518- * @param socketTimeout the socket timeout, or {@code null} if has no timeout.
519- * @return this {@link Builder}.
520- * @since 0.8.6
521- * @deprecated This option has been deprecated as of version 1.0.1, because it has no effect and
522- * serves no purpose.
523- */
524- public Builder socketTimeout (@ Nullable Duration socketTimeout ) {
525- this .socketTimeout = socketTimeout ;
526- return this ;
527- }
528-
529495 /**
530496 * Set the user for login the database.
531497 *
0 commit comments