From 3810f53b93ccda1bd7966fccdb724a027291dd97 Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 27 Apr 2022 15:15:40 -0700 Subject: [PATCH] Deprecate Apache Geode's embedded Redis service (server) configuration and support. See #592. Resolves #594. --- .../data/gemfire/config/annotation/EnableRedisServer.java | 3 +++ .../gemfire/config/annotation/RedisServerConfiguration.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/EnableRedisServer.java b/spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/EnableRedisServer.java index bcc86683..a957c63d 100644 --- a/spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/EnableRedisServer.java +++ b/spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/EnableRedisServer.java @@ -44,11 +44,14 @@ import org.springframework.context.annotation.Import; * @see org.springframework.context.annotation.Import * @see org.springframework.data.gemfire.config.annotation.MemcachedServerConfiguration * @since 1.9.0 + * @deprecated Support for the Redis Server protocol in Apache Geode to service Redis clients is targeted + * to be removed in the Apache Geode project as of Apache Geode 1.15. */ @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited +@Deprecated @Import(RedisServerConfiguration.class) @UsesGemFireProperties @SuppressWarnings("unused") diff --git a/spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/RedisServerConfiguration.java b/spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/RedisServerConfiguration.java index fddce9d5..5649416f 100644 --- a/spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/RedisServerConfiguration.java +++ b/spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/RedisServerConfiguration.java @@ -35,7 +35,10 @@ import org.springframework.data.gemfire.util.PropertiesBuilder; * @see org.springframework.data.gemfire.config.annotation.EnableRedisServer * @see org.springframework.data.gemfire.config.annotation.support.EmbeddedServiceConfigurationSupport * @since 1.9.0 + * @deprecated Support for the Redis Server protocol in Apache Geode to service Redis clients is targeted + * to be removed in the Apache Geode project as of Apache Geode 1.15. */ +@Deprecated public class RedisServerConfiguration extends EmbeddedServiceConfigurationSupport { protected static final int DEFAULT_REDIS_PORT = 6379;