Java Code Examples for org.apache.rocketmq.common.MixAll#DEFAULT_PRODUCER_GROUP

The following examples show how to use org.apache.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 DDMQ 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 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-all-4.1.0-incubating 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: DefaultMQProducerImpl.java    From rocketmq-read with Apache License 2.0 5 votes vote down vote up
/**
 * 检查配置
 * @throws MQClientException ;
 */
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 5
Source File: DefaultMQProducerImpl.java    From rocketmq_trans_message 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 6
Source File: DefaultMQProducerImpl.java    From DDMQ 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 7
Source File: DefaultMQProducer.java    From rocketmq-4.3.0 with Apache License 2.0 4 votes vote down vote up
/**
 * Default constructor.
 */
public DefaultMQProducer() {
    this(MixAll.DEFAULT_PRODUCER_GROUP, null);
}
 
Example 8
Source File: DefaultMQProducer.java    From rocketmq with Apache License 2.0 4 votes vote down vote up
/**
 * Default constructor.
 */
public DefaultMQProducer() {
    this(null, MixAll.DEFAULT_PRODUCER_GROUP, null);
}
 
Example 9
Source File: DefaultMQProducer.java    From rocketmq-read with Apache License 2.0 4 votes vote down vote up
/**
 * Default constructor.
 */
public DefaultMQProducer() {
    this(MixAll.DEFAULT_PRODUCER_GROUP, null);
}
 
Example 10
Source File: DefaultMQProducer.java    From rocketmq with Apache License 2.0 4 votes vote down vote up
/**
 * Default constructor.
 */
public DefaultMQProducer() {
    this(MixAll.DEFAULT_PRODUCER_GROUP, null);
}
 
Example 11
Source File: DefaultMQProducer.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/**
 * Default constructor.
 */
public DefaultMQProducer() {
    this(MixAll.DEFAULT_PRODUCER_GROUP, null);
}
 
Example 12
Source File: DefaultMQProducer.java    From rocketmq-all-4.1.0-incubating with Apache License 2.0 4 votes vote down vote up
/**
 * Default constructor.
 */
public DefaultMQProducer() {
    this(MixAll.DEFAULT_PRODUCER_GROUP, null);
}
 
Example 13
Source File: DefaultMQProducer.java    From rocketmq with Apache License 2.0 2 votes vote down vote up
/**
 * Constructor specifying the RPC hook.
 * @param rpcHook RPC hook to execute per each remoting command execution.
 */
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}
 
Example 14
Source File: DefaultMQProducer.java    From rocketmq_trans_message with Apache License 2.0 2 votes vote down vote up
/**
 * Constructor specifying the RPC hook.
 * @param rpcHook RPC hook to execute per each remoting command execution.
 */
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}
 
Example 15
Source File: DefaultMQProducer.java    From rocketmq-all-4.1.0-incubating with Apache License 2.0 2 votes vote down vote up
/**
 * Constructor specifying the RPC hook.
 * @param rpcHook RPC hook to execute per each remoting command execution.
 */
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}
 
Example 16
Source File: DefaultMQProducer.java    From DDMQ with Apache License 2.0 2 votes vote down vote up
/**
 * Constructor specifying the RPC hook.
 *
 * @param rpcHook RPC hook to execute per each remoting command execution.
 */
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}
 
Example 17
Source File: DefaultMQProducer.java    From rocketmq with Apache License 2.0 2 votes vote down vote up
/**
 * Constructor specifying the RPC hook.
 *
 * @param rpcHook RPC hook to execute per each remoting command execution.
 */
public DefaultMQProducer(RPCHook rpcHook) {
    this(null, MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}
 
Example 18
Source File: DefaultMQProducer.java    From rocketmq-read with Apache License 2.0 2 votes vote down vote up
/**
 * Constructor specifying the RPC hook.
 *
 * @param rpcHook RPC hook to execute per each remoting command execution.
 */
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}
 
Example 19
Source File: DefaultMQProducer.java    From rocketmq-4.3.0 with Apache License 2.0 2 votes vote down vote up
/**
 * Constructor specifying the RPC hook.
 *
 * @param rpcHook RPC hook to execute per each remoting command execution.
 */
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}
 
Example 20
Source File: DefaultMQProducer.java    From DDMQ with Apache License 2.0 2 votes vote down vote up
/**
 * Constructor specifying the RPC hook.
 *
 * @param rpcHook RPC hook to execute per each remoting command execution.
 */
public DefaultMQProducer(RPCHook rpcHook) {
    this(MixAll.DEFAULT_PRODUCER_GROUP, rpcHook);
}