4848import static io .asyncer .r2dbc .mysql .internal .util .InternalArrays .EMPTY_STRINGS ;
4949
5050/**
51- * MySQL configuration of connection.
51+ * A configuration of MySQL connection.
5252 */
5353public final class MySqlConnectionConfiguration {
5454
@@ -461,7 +461,7 @@ public MySqlConnectionConfiguration build() {
461461 }
462462
463463 /**
464- * Configure the database. Default no database.
464+ * Configures the database. Default no database.
465465 *
466466 * @param database the database, or {@code null} if no database want to be login.
467467 * @return this {@link Builder}.
@@ -473,7 +473,7 @@ public Builder database(@Nullable String database) {
473473 }
474474
475475 /**
476- * Configure to create the database given in the configuration if it does not yet exist. Default to
476+ * Configures to create the database given in the configuration if it does not yet exist. Default to
477477 * {@code false}.
478478 *
479479 * @param enabled to discover and register extensions.
@@ -486,7 +486,7 @@ public Builder createDatabaseIfNotExist(boolean enabled) {
486486 }
487487
488488 /**
489- * Configure the Unix Domain Socket to connect to.
489+ * Configures the Unix Domain Socket to connect to.
490490 *
491491 * @param unixSocket the socket file path.
492492 * @return this {@link Builder}.
@@ -500,7 +500,7 @@ public Builder unixSocket(String unixSocket) {
500500 }
501501
502502 /**
503- * Configure the host.
503+ * Configures the host.
504504 *
505505 * @param host the host.
506506 * @return this {@link Builder}.
@@ -514,7 +514,7 @@ public Builder host(String host) {
514514 }
515515
516516 /**
517- * Configure the password, MySQL allows to login without password.
517+ * Configures the password. Default login without password.
518518 * <p>
519519 * Note: for memory security, should not use intern {@link String} for password.
520520 *
@@ -528,7 +528,7 @@ public Builder password(@Nullable CharSequence password) {
528528 }
529529
530530 /**
531- * Configure the port. Defaults to {@code 3306}.
531+ * Configures the port. Defaults to {@code 3306}.
532532 *
533533 * @param port the port.
534534 * @return this {@link Builder}.
@@ -543,9 +543,9 @@ public Builder port(int port) {
543543 }
544544
545545 /**
546- * Configure the connection timeout. Default no timeout.
546+ * Configures the connection timeout. Default no timeout.
547547 *
548- * @param connectTimeout the connection timeout, or {@code null} if has no timeout.
548+ * @param connectTimeout the connection timeout, or {@code null} if no timeout.
549549 * @return this {@link Builder}.
550550 * @since 0.8.1
551551 */
@@ -555,7 +555,7 @@ public Builder connectTimeout(@Nullable Duration connectTimeout) {
555555 }
556556
557557 /**
558- * Set the user for login the database.
558+ * Configures the user for login the database.
559559 *
560560 * @param user the user.
561561 * @return this {@link Builder}.
@@ -580,8 +580,7 @@ public Builder username(String user) {
580580 }
581581
582582 /**
583- * Enforce the time zone of server. Default to query server time zone in initialization (no
584- * enforce).
583+ * Configures the time zone of server. Default to query server time zone in initialization.
585584 *
586585 * @param serverZoneId the {@link ZoneId}, or {@code null} if query in initialization.
587586 * @return this {@link Builder}.
@@ -593,8 +592,8 @@ public Builder serverZoneId(@Nullable ZoneId serverZoneId) {
593592 }
594593
595594 /**
596- * Configure the {@link ZeroDateOption}. It is a behavior option when this driver receives a value of
597- * zero-date.
595+ * Configures the {@link ZeroDateOption}. Default to {@link ZeroDateOption#USE_NULL}. It is a
596+ * behavior option when this driver receives a value of zero-date.
598597 *
599598 * @param zeroDate the {@link ZeroDateOption}.
600599 * @return this {@link Builder}.
@@ -607,7 +606,7 @@ public Builder zeroDateOption(ZeroDateOption zeroDate) {
607606 }
608607
609608 /**
610- * Configure ssl mode. See also {@link SslMode}.
609+ * Configures ssl mode. See also {@link SslMode}.
611610 *
612611 * @param sslMode the SSL mode to use.
613612 * @return this {@link Builder}.
@@ -620,7 +619,7 @@ public Builder sslMode(SslMode sslMode) {
620619 }
621620
622621 /**
623- * Configure TLS versions, see {@link io.asyncer.r2dbc.mysql.constant.TlsVersions}.
622+ * Configures TLS versions, see {@link io.asyncer.r2dbc.mysql.constant.TlsVersions TlsVersions}.
624623 *
625624 * @param tlsVersion TLS versions.
626625 * @return this {@link Builder}.
@@ -643,7 +642,7 @@ public Builder tlsVersion(String... tlsVersion) {
643642 }
644643
645644 /**
646- * Configure SSL {@link HostnameVerifier}, it is available only set {@link #sslMode(SslMode)} as
645+ * Configures SSL {@link HostnameVerifier}, it is available only set {@link #sslMode(SslMode)} as
647646 * {@link SslMode#VERIFY_IDENTITY}. It is useful when server was using special Certificates or need
648647 * special verification.
649648 * <p>
@@ -661,7 +660,7 @@ public Builder sslHostnameVerifier(HostnameVerifier sslHostnameVerifier) {
661660 }
662661
663662 /**
664- * Configure SSL root certification for server certificate validation. It is only available if the
663+ * Configures SSL root certification for server certificate validation. It is only available if the
665664 * {@link #sslMode(SslMode)} is configured for verify server certification.
666665 * <p>
667666 * Default is {@code null}, which means that the default algorithm is used for the trust manager.
@@ -676,7 +675,7 @@ public Builder sslCa(@Nullable String sslCa) {
676675 }
677676
678677 /**
679- * Configure client SSL certificate for client authentication.
678+ * Configures client SSL certificate for client authentication.
680679 * <p>
681680 * The {@link #sslCert} and {@link #sslKey} must be both non-{@code null} or both {@code null}.
682681 *
@@ -690,7 +689,7 @@ public Builder sslCert(@Nullable String sslCert) {
690689 }
691690
692691 /**
693- * Configure client SSL key for client authentication.
692+ * Configures client SSL key for client authentication.
694693 * <p>
695694 * The {@link #sslCert} and {@link #sslKey} must be both non-{@code null} or both {@code null}.
696695 *
@@ -704,7 +703,7 @@ public Builder sslKey(@Nullable String sslKey) {
704703 }
705704
706705 /**
707- * Configure the password of SSL key file for client certificate authentication.
706+ * Configures the password of SSL key file for client certificate authentication.
708707 * <p>
709708 * It will be used only if {@link #sslKey} and {@link #sslCert} non-null.
710709 *
@@ -719,7 +718,7 @@ public Builder sslKeyPassword(@Nullable CharSequence sslKeyPassword) {
719718 }
720719
721720 /**
722- * Configure a {@link SslContextBuilder} customizer. The customizer gets applied on each SSL
721+ * Configures a {@link SslContextBuilder} customizer. The customizer gets applied on each SSL
723722 * connection attempt to allow for just-in-time configuration updates. The {@link Function} gets
724723 * called with the prepared {@link SslContextBuilder} that has all configuration options applied. The
725724 * customizer may return the same builder or return a new builder instance to be used to build the SSL
@@ -739,7 +738,7 @@ public Builder sslContextBuilderCustomizer(
739738 }
740739
741740 /**
742- * Configure TCP KeepAlive.
741+ * Configures TCP KeepAlive.
743742 *
744743 * @param enabled whether to enable TCP KeepAlive
745744 * @return this {@link Builder}
@@ -752,7 +751,7 @@ public Builder tcpKeepAlive(boolean enabled) {
752751 }
753752
754753 /**
755- * Configure TCP NoDelay.
754+ * Configures TCP NoDelay.
756755 *
757756 * @param enabled whether to enable TCP NoDelay
758757 * @return this {@link Builder}
@@ -765,7 +764,7 @@ public Builder tcpNoDelay(boolean enabled) {
765764 }
766765
767766 /**
768- * Configure the protocol of parametrized statements to the text protocol.
767+ * Configures the protocol of parametrized statements to the text protocol.
769768 * <p>
770769 * The text protocol is default protocol that's using client-preparing. See also MySQL
771770 * documentations.
@@ -779,7 +778,7 @@ public Builder useClientPrepareStatement() {
779778 }
780779
781780 /**
782- * Configure the protocol of parametrized statements to the binary protocol.
781+ * Configures the protocol of parametrized statements to the binary protocol.
783782 * <p>
784783 * The binary protocol is compact protocol that's using server-preparing. See also MySQL
785784 * documentations.
@@ -792,7 +791,7 @@ public Builder useServerPrepareStatement() {
792791 }
793792
794793 /**
795- * Configure the protocol of parametrized statements and prepare-preferred simple statements to the
794+ * Configures the protocol of parametrized statements and prepare-preferred simple statements to the
796795 * binary protocol.
797796 * <p>
798797 * The {@code preferPrepareStatement} configures whether to prefer prepare execution on a
@@ -816,7 +815,7 @@ public Builder useServerPrepareStatement(Predicate<String> preferPrepareStatemen
816815 }
817816
818817 /**
819- * Configure the session variables, used to set session variables immediately after login. Default no
818+ * Configures the session variables, used to set session variables immediately after login. Default no
820819 * session variables to set. It should be a list of key-value pairs. e.g.
821820 * {@code ["sql_mode='ANSI_QUOTES,STRICT_TRANS_TABLES'", "time_zone=00:00"]}.
822821 *
0 commit comments