chenzlalvin commented on a change in pull request #4019: URL: https://github.com/apache/rocketmq/pull/4019#discussion_r831957558
########## File path: apis/src/main/java/org/apache/rocketmq/apis/consumer/PullConsumerBuilder.java ########## @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.rocketmq.apis.consumer; + +import org.apache.rocketmq.apis.ClientConfiguration; +import org.apache.rocketmq.apis.exception.ClientException; + +import java.time.Duration; + +public interface PullConsumerBuilder { + /** + * Set the client configuration for pull consumer. + * + * @param clientConfiguration client's configuration. + * @return the pull consumer builder instance. + */ + PullConsumerBuilder setClientConfiguration(ClientConfiguration clientConfiguration); + + /** + * Set the load balancing group for consumer. + * + * @param consumerGroup consumer load balancing group. + * @return the consumer builder instance. + */ + PullConsumerBuilder setConsumerGroup(String consumerGroup); + + /** + * Enable manual messageQueue assignment consumption mode. + * The default mode is subscription mode which manage the rebalance operation triggered when group membership or cluster and topic metadata change. + * When pull consumer manual queue assignment mode, must invoke assign method before pull message. + * @return the consumer builder instance. + */ + PushConsumerBuilder enableManualQueueAssignment(); + Review comment: By default, the subscription mode is enabled. After this assgin mode is enabled, active custom allocation is allowed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
