Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit ee6b348

Browse files
committed
Set deprecation version to old RedisFeatureStore constructors and made the new constructor protected.
1 parent dbca075 commit ee6b348

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/launchdarkly/client/RedisFeatureStore.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class RedisFeatureStore implements FeatureStore {
4747
* @param port the port for the Redis connection
4848
* @param prefix a namespace prefix for all keys stored in Redis
4949
* @param cacheTimeSecs an optional timeout for the in-memory cache. If set to 0, no in-memory caching will be performed
50-
* @deprecated as of X. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
50+
* @deprecated as of 1.1. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
5151
* flexible way of creating the FeatureStore.
5252
*/
5353
@Deprecated
@@ -62,7 +62,7 @@ public RedisFeatureStore(String host, int port, String prefix, long cacheTimeSec
6262
* @param uri the URI for the Redis connection
6363
* @param prefix a namespace prefix for all keys stored in Redis
6464
* @param cacheTimeSecs an optional timeout for the in-memory cache. If set to 0, no in-memory caching will be performed
65-
* @deprecated as of X. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
65+
* @deprecated as of 1.1. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
6666
* flexible way of creating the FeatureStore.
6767
*/
6868
@Deprecated
@@ -78,7 +78,7 @@ public RedisFeatureStore(URI uri, String prefix, long cacheTimeSecs) {
7878
* @param prefix a namespace prefix for all keys stored in Redis
7979
* @param cacheTimeSecs an optional timeout for the in-memory cache. If set to 0, no in-memory caching will be performed
8080
* @param poolConfig an optional pool config for the Jedis connection pool
81-
* @deprecated as of X. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
81+
* @deprecated as of 1.1. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
8282
* flexible way of creating the FeatureStore.
8383
*/
8484
@Deprecated
@@ -96,7 +96,7 @@ public RedisFeatureStore(String host, int port, String prefix, long cacheTimeSec
9696
* @param prefix a namespace prefix for all keys stored in Redis
9797
* @param cacheTimeSecs an optional timeout for the in-memory cache. If set to 0, no in-memory caching will be performed
9898
* @param poolConfig an optional pool config for the Jedis connection pool
99-
* @deprecated as of X. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
99+
* @deprecated as of 1.1. Please use the {@link com.launchdarkly.client.RedisFeatureStore#RedisFeatureStore(RedisFeatureStoreBuilder)} constructor for a more
100100
* flexible way of creating the FeatureStore.
101101
*/
102102
@Deprecated
@@ -114,7 +114,7 @@ public RedisFeatureStore(URI uri, String prefix, long cacheTimeSecs, JedisPoolCo
114114
*
115115
* @param builder the store configuration
116116
*/
117-
public RedisFeatureStore(RedisFeatureStoreBuilder builder) {
117+
protected RedisFeatureStore(RedisFeatureStoreBuilder builder) {
118118
if (builder.poolConfig == null) {
119119
this.pool = new JedisPool(getPoolConfig(), builder.uri, builder.connectTimeout, builder.socketTimeout);
120120
} else {

0 commit comments

Comments
 (0)