class MQClientInstance {

    public boolean registerConsumer(final String group, final MQConsumerInner consumer) {
        if (null == group || null == consumer) {
            return false;
        }
        MQConsumerInner prev = this.consumerTable.putIfAbsent(group, consumer);
        if (prev != null) {
            log.warn("the consumer group[" + group + "] exist already.");
            return false;
        }

        return true;
    }

    public  MQClientInstance(ClientConfig clientConfig, int instanceIndex, String clientId);
    public  MQClientInstance(ClientConfig clientConfig, int instanceIndex, String clientId, RPCHook rpcHook);

}