Skip to content

Commit

Permalink
Correct javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mirromutth committed Feb 13, 2024
1 parent fde4586 commit 7ad491a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ public Builder prepareCacheSize(int prepareCacheSize) {
* @param compressionAlgorithms the list of compression algorithms.
* @return {@link Builder this}.
* @throws IllegalArgumentException if {@code compressionAlgorithms} is {@code null} or empty.
* @since 1.1.0
* @since 1.1.2
*/
public Builder compressionAlgorithms(CompressionAlgorithm... compressionAlgorithms) {
requireNonNull(compressionAlgorithms, "compressionAlgorithms must not be null");
Expand Down Expand Up @@ -900,7 +900,7 @@ public Builder compressionAlgorithms(CompressionAlgorithm... compressionAlgorith
* @param level the compression level.
* @return {@link Builder this}.
* @throws IllegalArgumentException if {@code level} is not between 1 and 22.
* @since 1.1.0
* @since 1.1.2
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/connection-options.html">
* MySQL Connection Options --zstd-compression-level</a>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public final class MySqlConnectionFactoryProvider implements ConnectionFactoryPr
* <p>
* Note: zstd requires a dependency {@code com.github.luben:zstd-jni}.
*
* @since 1.1.0
* @since 1.1.2
*/
public static final Option<CompressionAlgorithm[]> COMPRESSION_ALGORITHMS =
Option.valueOf("compressionAlgorithms");
Expand All @@ -212,7 +212,7 @@ public final class MySqlConnectionFactoryProvider implements ConnectionFactoryPr
* Note: MySQL protocol does not allow to set the zlib compression level of the server, only zstd is
* configurable.
*
* @since 1.1.0
* @since 1.1.2
*/
public static final Option<Integer> ZSTD_COMPRESSION_LEVEL =
Option.valueOf("zstdCompressionLevel");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
*/
public interface ClientMessage {

/**
* Returns whether the sequence should be reset before encoding this message.
*
* @return {@code true} if the sequence should be reset.
*/
default boolean isSequenceReset() {
return true;
}
Expand Down

0 comments on commit 7ad491a

Please sign in to comment.