DATAREDIS-405 - Deprecate support for jredis and srp.

Original pull request: #163.
This commit is contained in:
Christoph Strobl
2016-01-29 11:01:32 +01:00
committed by Mark Paluch
parent ea78041d57
commit 239d97195a
14 changed files with 36 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2015 the original author or authors.
* Copyright 2011-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -59,7 +59,9 @@ import org.springframework.util.ReflectionUtils;
* @author Christoph Strobl
* @author Thomas Darimont
* @author David Liu
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
public class JredisConnection extends AbstractRedisConnection {
private static final Method SERVICE_REQUEST;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2013 the original author or authors.
* Copyright 2011-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,7 +37,9 @@ import org.springframework.util.StringUtils;
*
* @author Costin Leau
* @author Jennifer Hickey
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
public class JredisConnectionFactory implements InitializingBean, DisposableBean, RedisConnectionFactory {
private ConnectionSpec connectionSpec;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2014 the original author or authors.
* Copyright 2011-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,7 +35,9 @@ import org.springframework.util.StringUtils;
*
* @author Jennifer Hickey
* @author Christoph Strobl
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
public class JredisPool implements Pool<JRedis> {
private final GenericObjectPool<JRedis> internalPool;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2013 the original author or authors.
* Copyright 2011-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,7 +38,9 @@ import org.springframework.data.redis.connection.SortParameters.Range;
*
* @author Costin Leau
* @author Jennifer Hickey
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
public abstract class JredisUtils {
/**

View File

@@ -1,5 +1,6 @@
/**
* Connection package for <a href="http://github.com/alphazero/jredis">JRedis</a> library.
* @deprecated since 1.7. Will be removed in subsequent version.
*/
package org.springframework.data.redis.connection.jredis;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2015 the original author or authors.
* Copyright 2011-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -69,7 +69,9 @@ import com.google.common.util.concurrent.ListenableFuture;
* @author Christoph Strobl
* @author Thomas Darimont
* @author David Liu
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
public class SrpConnection extends AbstractRedisConnection {
private static final ExceptionTranslationStrategy EXCEPTION_TRANSLATION = new FallbackExceptionTranslationStrategy(

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2014 the original author or authors.
* Copyright 2011-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,7 +33,9 @@ import org.springframework.data.redis.connection.RedisSentinelConnection;
*
* @author Costin Leau
* @author Thomas Darimont
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
public class SrpConnectionFactory implements InitializingBean, DisposableBean, RedisConnectionFactory {
private static final ExceptionTranslationStrategy EXCEPTION_TRANSLATION = new PassThroughExceptionTranslationStrategy(

View File

@@ -53,7 +53,9 @@ import com.google.common.base.Charsets;
* @author Jennifer Hickey
* @author Christoph Strobl
* @author Thomas Darimont
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
@SuppressWarnings("rawtypes")
abstract public class SrpConverters extends Converters {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2013 the original author or authors.
* Copyright 2011-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,9 @@ import redis.client.ReplyListener;
* MessageListener wrapper around SRP {@link ReplyListener}.
*
* @author Costin Leau
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
class SrpMessageListener implements ReplyListener {
private final MessageListener listener;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,9 @@ import redis.reply.Reply;
* Converts the value returned by SRP script eval to the expected {@link ReturnType}
*
* @author Jennifer Hickey
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
public class SrpScriptReturnConverter implements Converter<Object, Object> {
private ReturnType returnType;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2013 the original author or authors.
* Copyright 2011-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,9 @@ import redis.client.ReplyListener;
* Message subscription on top of SRP.
*
* @author Costin Leau
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
class SrpSubscription extends AbstractSubscription {
private final RedisClient client;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2013 the original author or authors.
* Copyright 2011-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -49,6 +49,7 @@ import java.util.Set;
*
* @author Costin Leau
* @author Jennifer Hickey
* @deprecated since 1.7. Will be removed in subsequent version.
*/
@Deprecated
abstract class SrpUtils {

View File

@@ -1,5 +1,6 @@
/**
* Connection package for <a href="https://github.com/spullara/redis-protocol">spullara Redis Protocol</a> library.
* @deprecated since 1.7. Will be removed in subsequent version.
*/
package org.springframework.data.redis.connection.srp;