Java Code Examples for com.alibaba.rocketmq.common.MixAll#DEFAULT_PRODUCER_GROUP

The following examples show how to use com.alibaba.rocketmq.common.MixAll#DEFAULT_PRODUCER_GROUP . 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: DefaultMQProducerImpl.java    From reading-and-annotate-rocketmq-3.4.6 with GNU General Public License v3.0 5 votes vote down vote up
private void checkConfig() throws MQClientException {
    Validators.checkGroup(this.defaultMQProducer.getProducerGroup());

    if (null == this.defaultMQProducer.getProducerGroup()) {
        throw new MQClientException("producerGroup is null", null);
    }

    if (this.defaultMQProducer.getProducerGroup().equals(MixAll.DEFAULT_PRODUCER_GROUP)) {
        throw new MQClientException("producerGroup can not equal " + MixAll.DEFAULT_PRODUCER_GROUP
                + ", please specify another one.", null);
    }
}
 
Example 2
Source File: DefaultMQProducerImpl.java    From rocketmq with Apache License 2.0 5 votes vote down vote up
private void checkConfig() throws MQClientException {
    Validators.checkGroup(this.defaultMQProducer.getProducerGroup());

    if (null == this.defaultMQProducer.getProducerGroup()) {
        throw new MQClientException("producerGroup is null", null);
    }

    if (this.defaultMQProducer.getProducerGroup().equals(MixAll.DEFAULT_PRODUCER_GROUP)) {
        throw new MQClientException("producerGroup can not equal " + MixAll.DEFAULT_PRODUCER_GROUP + ", please specify another one.",
                null);
    }
}
 
Example 3
Source File: DefaultMQProducerImpl.java    From RocketMQ-Master-analyze with Apache License 2.0 5 votes vote down vote up
private void checkConfig() throws MQClientException {
    Validators.checkGroup(this.defaultMQProducer.getProducerGroup());

    if (null == this.defaultMQProducer.getProducerGroup()) {
        throw new MQClientException("producerGroup is null", null);
    }

    if (this.defaultMQProducer.getProducerGroup().equals(MixAll.DEFAULT_PRODUCER_GROUP)) {
        throw new MQClientException("producerGroup can not equal " + MixAll.DEFAULT_PRODUCER_GROUP
                + ", please specify another one.",
            null);
    }
}
 
Example 4
Source File: DefaultMQProducer.java    From reading-and-annotate-rocketmq-3.4.6 with GNU General Public License v3.0 4 votes vote down vote up
public DefaultMQProducer() {
    this(MixAll.DEFAULT_PRODUCER_GROUP, null);
}
 
Example 5
Source File: DefaultMQProducer.java    From reading-and-annotate-rocketmq-3.4.6 with GNU General Public License v3.0 4 votes vote down vote up
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}
 
Example 6
Source File: DefaultMQProducer.java    From rocketmq with Apache License 2.0 4 votes vote down vote up
public DefaultMQProducer() {
    this(MixAll.DEFAULT_PRODUCER_GROUP, null);
}
 
Example 7
Source File: DefaultMQProducer.java    From rocketmq with Apache License 2.0 4 votes vote down vote up
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}
 
Example 8
Source File: DefaultMQProducer.java    From RocketMQ-Master-analyze with Apache License 2.0 4 votes vote down vote up
public DefaultMQProducer() {
    this(MixAll.DEFAULT_PRODUCER_GROUP, null);
}
 
Example 9
Source File: DefaultMQProducer.java    From RocketMQ-Master-analyze with Apache License 2.0 4 votes vote down vote up
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}