本文整理匯總了Java中org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy類的典型用法代碼示例。如果您正苦於以下問題:Java AllocateMessageQueueStrategy類的具體用法?Java AllocateMessageQueueStrategy怎麽用?Java AllocateMessageQueueStrategy使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
AllocateMessageQueueStrategy類屬於org.apache.rocketmq.client.consumer包,在下文中一共展示了AllocateMessageQueueStrategy類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: RebalanceImpl
import org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy; //導入依賴的package包/類
public RebalanceImpl(String consumerGroup, MessageModel messageModel, AllocateMessageQueueStrategy allocateMessageQueueStrategy,
MQClientInstance mQClientFactory) {
this.consumerGroup = consumerGroup;
this.messageModel = messageModel;
this.allocateMessageQueueStrategy = allocateMessageQueueStrategy;
this.mQClientFactory = mQClientFactory;
}
示例2: RebalanceImpl
import org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy; //導入依賴的package包/類
public RebalanceImpl(String consumerGroup, MessageModel messageModel,
AllocateMessageQueueStrategy allocateMessageQueueStrategy,
MQClientInstance mQClientFactory) {
this.consumerGroup = consumerGroup;
this.messageModel = messageModel;
this.allocateMessageQueueStrategy = allocateMessageQueueStrategy;
this.mQClientFactory = mQClientFactory;
}
示例3: RebalancePullImpl
import org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy; //導入依賴的package包/類
public RebalancePullImpl(String consumerGroup, MessageModel messageModel, AllocateMessageQueueStrategy allocateMessageQueueStrategy,
MQClientInstance mQClientFactory, DefaultMQPullConsumerImpl defaultMQPullConsumerImpl) {
super(consumerGroup, messageModel, allocateMessageQueueStrategy, mQClientFactory);
this.defaultMQPullConsumerImpl = defaultMQPullConsumerImpl;
}
示例4: getAllocateMessageQueueStrategy
import org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy; //導入依賴的package包/類
public AllocateMessageQueueStrategy getAllocateMessageQueueStrategy() {
return allocateMessageQueueStrategy;
}
示例5: setAllocateMessageQueueStrategy
import org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy; //導入依賴的package包/類
public void setAllocateMessageQueueStrategy(AllocateMessageQueueStrategy allocateMessageQueueStrategy) {
this.allocateMessageQueueStrategy = allocateMessageQueueStrategy;
}
示例6: RebalancePushImpl
import org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy; //導入依賴的package包/類
public RebalancePushImpl(String consumerGroup, MessageModel messageModel, AllocateMessageQueueStrategy allocateMessageQueueStrategy,
MQClientInstance mQClientFactory, DefaultMQPushConsumerImpl defaultMQPushConsumerImpl) {
super(consumerGroup, messageModel, allocateMessageQueueStrategy, mQClientFactory);
this.defaultMQPushConsumerImpl = defaultMQPushConsumerImpl;
}
示例7: RebalancePullImpl
import org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy; //導入依賴的package包/類
public RebalancePullImpl(String consumerGroup, MessageModel messageModel,
AllocateMessageQueueStrategy allocateMessageQueueStrategy,
MQClientInstance mQClientFactory, DefaultMQPullConsumerImpl defaultMQPullConsumerImpl) {
super(consumerGroup, messageModel, allocateMessageQueueStrategy, mQClientFactory);
this.defaultMQPullConsumerImpl = defaultMQPullConsumerImpl;
}
示例8: RebalancePushImpl
import org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy; //導入依賴的package包/類
public RebalancePushImpl(String consumerGroup, MessageModel messageModel,
AllocateMessageQueueStrategy allocateMessageQueueStrategy,
MQClientInstance mQClientFactory, DefaultMQPushConsumerImpl defaultMQPushConsumerImpl) {
super(consumerGroup, messageModel, allocateMessageQueueStrategy, mQClientFactory);
this.defaultMQPushConsumerImpl = defaultMQPushConsumerImpl;
}