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 d56075c6097bddac6216e41796e4fb295b599722..bc6d328c430e8f2fb183e7c7b51a33e9d614e30b 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,11 +55,15 @@ 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
* @param filterClassSource class source code,used UTF-8 file encoding,must be responsible for your code safety
*/
+ @Deprecated
void subscribe(final String topic, final String fullClassName,
final String filterClassSource) throws MQClientException;
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 1b38856291c339b2c51e424656b75c757cabd2a8..9ffaed0a4f9086a87d88603f00f0335330af560d 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,7 +720,11 @@ 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,
final String filterClassSource) throws UnsupportedEncodingException {