Skip to content

Commit

Permalink
Deprecate Remove JedisClusterHostAndPortMap #2518 (#2535)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored May 13, 2021
1 parent e07baae commit 6dedfba
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 19 deletions.
8 changes: 4 additions & 4 deletions src/main/java/redis/clients/jedis/BinaryJedisCluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeo
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout,
Expand All @@ -121,7 +121,7 @@ public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeo
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout,
Expand All @@ -135,7 +135,7 @@ public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeo
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout,
Expand All @@ -151,7 +151,7 @@ public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeo
/**
* @param maxTotalRetriesDuration After this amount of time we will do no more retries and report
* the operation as failed.
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public BinaryJedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout,
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/redis/clients/jedis/JedisCluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts,
Expand All @@ -102,7 +102,7 @@ public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisCluster(HostAndPort node, int connectionTimeout, int soTimeout, int maxAttempts,
Expand Down Expand Up @@ -192,7 +192,7 @@ public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, in
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout,
Expand All @@ -205,7 +205,7 @@ public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, in
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout,
Expand All @@ -219,7 +219,7 @@ public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, in
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout,
Expand All @@ -232,7 +232,7 @@ public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, in
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout,
Expand All @@ -248,7 +248,7 @@ public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, in
/**
* @param maxTotalRetriesDuration After this amount of time we will do no more retries and report
* the operation as failed.
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public JedisClusterConnectionHandler(Set<HostAndPort> nodes,
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisClusterConnectionHandler(Set<HostAndPort> nodes,
Expand All @@ -55,7 +55,7 @@ public JedisClusterConnectionHandler(Set<HostAndPort> nodes,
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisClusterConnectionHandler(Set<HostAndPort> nodes,
Expand All @@ -68,7 +68,7 @@ public JedisClusterConnectionHandler(Set<HostAndPort> nodes,
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisClusterConnectionHandler(Set<HostAndPort> nodes,
Expand All @@ -89,7 +89,7 @@ public JedisClusterConnectionHandler(Set<HostAndPort> nodes,
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisClusterConnectionHandler(Set<HostAndPort> nodes,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package redis.clients.jedis;

/**
* @deprecated This will be removed in future. Prefer to use {@link HostAndPortMapper} instead.
* @deprecated This interface will be removed in next major release. Use {@link HostAndPortMapper}.
*/
@Deprecated
public interface JedisClusterHostAndPortMap extends HostAndPortMapper {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/redis/clients/jedis/JedisClusterInfoCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public JedisClusterInfoCache(final GenericObjectPoolConfig<Jedis> poolConfig,
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisClusterInfoCache(final GenericObjectPoolConfig<Jedis> poolConfig,
Expand All @@ -86,7 +86,7 @@ public JedisClusterInfoCache(final GenericObjectPoolConfig<Jedis> poolConfig,
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisClusterInfoCache(final GenericObjectPoolConfig<Jedis> poolConfig,
Expand All @@ -108,7 +108,7 @@ public JedisClusterInfoCache(final GenericObjectPoolConfig<Jedis> poolConfig,
}

/**
* @deprecated This constructor will be removed in future.
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisClusterInfoCache(final GenericObjectPoolConfig<Jedis> poolConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public JedisSlotBasedConnectionHandler(Set<HostAndPort> nodes,
clientName);
}

/**
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisSlotBasedConnectionHandler(Set<HostAndPort> nodes,
GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout,
String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory,
Expand All @@ -57,6 +61,10 @@ public JedisSlotBasedConnectionHandler(Set<HostAndPort> nodes,
sslSocketFactory, sslParameters, hostnameVerifier, portMap);
}

/**
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisSlotBasedConnectionHandler(Set<HostAndPort> nodes,
GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, String user,
String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory,
Expand All @@ -66,6 +74,10 @@ public JedisSlotBasedConnectionHandler(Set<HostAndPort> nodes,
sslSocketFactory, sslParameters, hostnameVerifier, portMap);
}

/**
* @deprecated This constructor will be removed in next major release.
*/
@Deprecated
public JedisSlotBasedConnectionHandler(Set<HostAndPort> nodes,
GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout,
int infiniteSoTimeout, String user, String password, String clientName, boolean ssl,
Expand Down

0 comments on commit 6dedfba

Please sign in to comment.