Skip to content

Commit

Permalink
Purge filterserv related code in client
Browse files Browse the repository at this point in the history
[ISSUE alibaba#461]Purge filterserv related code in client
  • Loading branch information
duhengforever authored Oct 31, 2018
2 parents 7a6164d + 4ca1a71 commit 2961a30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>subscribe(final String topic, final MessageSelector messageSelector)</code>
* 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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,11 @@ private boolean isBrokerInNameServer(final String brokerAddr) {

return false;
}

/**
* This method will be removed in the version 5.0.0,because filterServer was removed,and method <code>subscribe(final String topic, final MessageSelector messageSelector)</code>
* is recommended.
*/
@Deprecated
private void uploadFilterClassToAllFilterServer(final String consumerGroup, final String fullClassName,
final String topic,
final String filterClassSource) throws UnsupportedEncodingException {
Expand Down

0 comments on commit 2961a30

Please sign in to comment.