Skip to content

Commit

Permalink
Un-deprecate ClientOptions.pingBeforeActivateConnection #1208
Browse files Browse the repository at this point in the history
pingBeforeActivateConnection turns out to be useful when using RESP2 in cases where the connection authentication should be delayed. Another case is when the PING should be used as auth PING to test whether a reconnect was successful.

Related ticket: #1201.
  • Loading branch information
mp911de committed Jan 31, 2020
1 parent 4af2ba7 commit e18609f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/main/java/io/lettuce/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ protected Builder() {
*
* @param pingBeforeActivateConnection true/false
* @return {@code this}
* @deprecated since 5.2. PING during connection handshake becomes mandatory with RESP3. This method will be removed
* with Lettuce 6.
*/
@Deprecated
public Builder pingBeforeActivateConnection(boolean pingBeforeActivateConnection) {
this.pingBeforeActivateConnection = pingBeforeActivateConnection;
return this;
Expand Down Expand Up @@ -328,10 +325,7 @@ public ClientOptions.Builder mutate() {
* activated and enabled for use. If the check fails, the connect/reconnect is treated as failure.
*
* @return {@literal true} if {@literal PING} barrier is enabled.
* @deprecated since 5.2. PING during connection handshake becomes mandatory with RESP3. This method will be removed with
* Lettuce 6.
*/
@Deprecated
public boolean isPingBeforeActivateConnection() {
return pingBeforeActivateConnection;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ public Builder topologyRefreshOptions(ClusterTopologyRefreshOptions topologyRefr
}

@Override
@Deprecated
public Builder pingBeforeActivateConnection(boolean pingBeforeActivateConnection) {
super.pingBeforeActivateConnection(pingBeforeActivateConnection);
return this;
Expand Down

0 comments on commit e18609f

Please sign in to comment.