Java Code Examples for org.apache.rocketmq.common.subscription.SubscriptionGroupConfig#setConsumeEnable()

The following examples show how to use org.apache.rocketmq.common.subscription.SubscriptionGroupConfig#setConsumeEnable() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SubscriptionGroupManager.java    From DDMQ with Apache License 2.0 5 votes vote down vote up
public void disableConsume(final String groupName) {
    SubscriptionGroupConfig old = this.subscriptionGroupTable.get(groupName);
    if (old != null) {
        old.setConsumeEnable(false);
        this.dataVersion.nextVersion();
    }
}
 
Example 2
Source File: SubscriptionGroupManager.java    From rocketmq-4.3.0 with Apache License 2.0 5 votes vote down vote up
public void disableConsume(final String groupName) {
//        消费组订阅信息
        SubscriptionGroupConfig old = this.subscriptionGroupTable.get(groupName);
        if (old != null) {
//            设置禁止消费
            old.setConsumeEnable(false);
            this.dataVersion.nextVersion();
        }
    }
 
Example 3
Source File: SubscriptionGroupManager.java    From rocketmq-read with Apache License 2.0 5 votes vote down vote up
/**
 * 禁用消费组
 * @param groupName ;
 */
public void disableConsume(final String groupName) {
    SubscriptionGroupConfig old = this.subscriptionGroupTable.get(groupName);
    if (old != null) {
        old.setConsumeEnable(false);
        this.dataVersion.nextVersion();
    }
}
 
Example 4
Source File: SubscriptionGroupManager.java    From rocketmq with Apache License 2.0 5 votes vote down vote up
public void disableConsume(final String groupName) {
    SubscriptionGroupConfig old = this.subscriptionGroupTable.get(groupName);
    if (old != null) {
        old.setConsumeEnable(false);
        this.dataVersion.nextVersion();
    }
}
 
Example 5
Source File: SubscriptionGroupManager.java    From DDMQ with Apache License 2.0 5 votes vote down vote up
public void disableConsume(final String groupName) {
    SubscriptionGroupConfig old = this.subscriptionGroupTable.get(groupName);
    if (old != null) {
        old.setConsumeEnable(false);
        this.dataVersion.nextVersion();
    }
}
 
Example 6
Source File: SubscriptionGroupManager.java    From rocketmq-all-4.1.0-incubating with Apache License 2.0 5 votes vote down vote up
/**
 * 不能消费,设置消费标记为false
 * @param groupName
 */
public void disableConsume(final String groupName) {
    SubscriptionGroupConfig old = this.subscriptionGroupTable.get(groupName);
    if (old != null) {
        old.setConsumeEnable(false);
        this.dataVersion.nextVersion();
    }
}
 
Example 7
Source File: SubscriptionGroupManager.java    From rocketmq_trans_message with Apache License 2.0 5 votes vote down vote up
public void disableConsume(final String groupName) {
    SubscriptionGroupConfig old = this.subscriptionGroupTable.get(groupName);
    if (old != null) {
        old.setConsumeEnable(false);
        this.dataVersion.nextVersion();
    }
}
 
Example 8
Source File: SubscriptionGroupManager.java    From rocketmq with Apache License 2.0 5 votes vote down vote up
public void disableConsume(final String groupName) {
    SubscriptionGroupConfig old = this.subscriptionGroupTable.get(groupName);
    if (old != null) {
        old.setConsumeEnable(false);
        this.dataVersion.nextVersion();
    }
}