From 1297970440b823a9c3e15c9df6bc8e04f5609ea5 Mon Sep 17 00:00:00 2001 From: wlliqipeng Date: Wed, 31 Oct 2018 16:44:35 +0800 Subject: [PATCH] add note --- .../org/apache/rocketmq/client/consumer/MQPushConsumer.java | 3 +++ .../apache/rocketmq/client/impl/factory/MQClientInstance.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/client/src/main/java/org/apache/rocketmq/client/consumer/MQPushConsumer.java b/client/src/main/java/org/apache/rocketmq/client/consumer/MQPushConsumer.java index 4cabf8f5..4f2e9e8f 100644 --- a/client/src/main/java/org/apache/rocketmq/client/consumer/MQPushConsumer.java +++ b/client/src/main/java/org/apache/rocketmq/client/consumer/MQPushConsumer.java @@ -55,6 +55,9 @@ public interface MQPushConsumer extends MQConsumer { void subscribe(final String topic, final String subExpression) throws MQClientException; /** + * This method will be removed in the version 5.0.0,because filterServer was removed,and method subscribe(final String topic, final MessageSelector messageSelector) + * is recommended. + * * Subscribe some topic * * @param fullClassName full class name,must extend org.apache.rocketmq.common.filter. MessageFilter diff --git a/client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java b/client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java index eb984a80..c8a7274a 100644 --- a/client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java +++ b/client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java @@ -720,6 +720,10 @@ public class MQClientInstance { return false; } + /** + * This method will be removed in the version 5.0.0,because filterServer was removed,and method subscribe(final String topic, final MessageSelector messageSelector) + * is recommended. + */ @Deprecated private void uploadFilterClassToAllFilterServer(final String consumerGroup, final String fullClassName, final String topic, -- GitLab