package cn.learn.rocketmq.order;
import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer;
import org.apache.rocketmq.client.consumer.listener.ConsumeOrderlyContext;
import org.apache.rocketmq.client.consumer.listener.ConsumeOrderlyStatus;
import org.apache.rocketmq.client.consumer.listener.MessageListenerOrderly;
import org.apache.rocketmq.common.message.MessageExt;
import java.io.UnsupportedEncodingException;
import java.util.List;
public class OrderConsumer {
public static void main(String[] args) throws Exception {
DefaultMQPushConsumer consumer = new
DefaultMQPushConsumer("LEARN_ORDER_CONSUMER");
consumer.setNamesrvAddr("localhost:9876");
consumer.subscribe("learn_order_topic", "*");
consumer.registerMessageListener(new MessageListenerOrderly() {
@Override
public ConsumeOrderlyStatus consumeMessage(List<MessageExt> msgs,
ConsumeOrderlyContext context) {
for (MessageExt msg : msgs) {
try {
System.out.println(Thread.currentThread().getName() + " "
+ msg.getQueueId() + " "
+ new String(msg.getBody(),"UTF-8"));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
}
// System.out.println(Thread.currentThread().getName() + " Receive New Messages: " + msgs);
return ConsumeOrderlyStatus.SUCCESS;
}
});
consumer.start();
}
}
package cn.learn.rocketmq.order;
import org.apache.rocketmq.client.producer.DefaultMQProducer;
import org.apache.rocketmq.client.producer.SendResult;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.remoting.common.RemotingHelper;
public class OrderProducer {
public static void main(String[] args) throws Exception {
DefaultMQProducer producer = new DefaultMQProducer("LEARN_ORDER_PRODUCER");
producer.setNamesrvAddr("localhost:9876");
producer.start();
for (int i = 0; i < 100; i++) {
int orderId = i % 10; // 模拟生成订单id
String msgStr = "order --> " + i +", id = "+ orderId;
Message message = new Message("learn_order_topic", "ORDER_MSG",
msgStr.getBytes(RemotingHelper.DEFAULT_CHARSET));
SendResult sendResult = producer.send(message, (mqs, msg, arg) -> {
Integer id = (Integer) arg;
int index = id % mqs.size();
return mqs.get(index);
}, orderId);
System.out.println(sendResult);
}
producer.shutdown();
}
}
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22198F0000, offsetMsgId=3B6E8A9100002A9F000000000000E875, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=90]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2219E90001, offsetMsgId=3B6E8A9100002A9F000000000000E937, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=90]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221A120002, offsetMsgId=3B6E8A9100002A9F000000000000E9F9, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=60]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221A3F0003, offsetMsgId=3B6E8A9100002A9F000000000000EABB, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=60]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221A670004, offsetMsgId=3B6E8A9100002A9F000000000000EB7D, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=91]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221A940005, offsetMsgId=3B6E8A9100002A9F000000000000EC3F, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=91]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221ABC0006, offsetMsgId=3B6E8A9100002A9F000000000000ED01, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=61]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221AE40007, offsetMsgId=3B6E8A9100002A9F000000000000EDC3, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=61]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221B110008, offsetMsgId=3B6E8A9100002A9F000000000000EE85, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=92]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221B390009, offsetMsgId=3B6E8A9100002A9F000000000000EF47, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=92]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221B66000A, offsetMsgId=3B6E8A9100002A9F000000000000F009, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=93]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221B93000B, offsetMsgId=3B6E8A9100002A9F000000000000F0CC, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=93]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221BB6000C, offsetMsgId=3B6E8A9100002A9F000000000000F18F, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=62]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221BE7000D, offsetMsgId=3B6E8A9100002A9F000000000000F252, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=62]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221C10000E, offsetMsgId=3B6E8A9100002A9F000000000000F315, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=94]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221C38000F, offsetMsgId=3B6E8A9100002A9F000000000000F3D8, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=94]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221C600010, offsetMsgId=3B6E8A9100002A9F000000000000F49B, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=63]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221C880011, offsetMsgId=3B6E8A9100002A9F000000000000F55E, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=63]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221CBA0012, offsetMsgId=3B6E8A9100002A9F000000000000F621, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=95]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221CE20013, offsetMsgId=3B6E8A9100002A9F000000000000F6E4, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=95]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221D0F0014, offsetMsgId=3B6E8A9100002A9F000000000000F7A7, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=96]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221D390015, offsetMsgId=3B6E8A9100002A9F000000000000F86A, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=96]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221D640016, offsetMsgId=3B6E8A9100002A9F000000000000F92D, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=64]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221D8C0017, offsetMsgId=3B6E8A9100002A9F000000000000F9F0, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=64]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221DB40018, offsetMsgId=3B6E8A9100002A9F000000000000FAB3, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=97]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221DDB0019, offsetMsgId=3B6E8A9100002A9F000000000000FB76, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=97]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221E04001A, offsetMsgId=3B6E8A9100002A9F000000000000FC39, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=65]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221E31001B, offsetMsgId=3B6E8A9100002A9F000000000000FCFC, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=65]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221E5E001C, offsetMsgId=3B6E8A9100002A9F000000000000FDBF, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=98]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221E86001D, offsetMsgId=3B6E8A9100002A9F000000000000FE82, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=98]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221EAE001E, offsetMsgId=3B6E8A9100002A9F000000000000FF45, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=99]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221ED6001F, offsetMsgId=3B6E8A9100002A9F0000000000010008, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=99]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221EFE0020, offsetMsgId=3B6E8A9100002A9F00000000000100CB, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=66]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221F300021, offsetMsgId=3B6E8A9100002A9F000000000001018E, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=66]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221F580022, offsetMsgId=3B6E8A9100002A9F0000000000010251, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=100]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221F800023, offsetMsgId=3B6E8A9100002A9F0000000000010314, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=100]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221FA80024, offsetMsgId=3B6E8A9100002A9F00000000000103D7, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=67]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A221FD00025, offsetMsgId=3B6E8A9100002A9F000000000001049A, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=67]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2220020026, offsetMsgId=3B6E8A9100002A9F000000000001055D, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=101]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22202A0027, offsetMsgId=3B6E8A9100002A9F0000000000010620, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=101]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2220520028, offsetMsgId=3B6E8A9100002A9F00000000000106E3, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=102]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22207A0029, offsetMsgId=3B6E8A9100002A9F00000000000107A6, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=102]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2220A7002A, offsetMsgId=3B6E8A9100002A9F0000000000010869, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=68]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2220D3002B, offsetMsgId=3B6E8A9100002A9F000000000001092C, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=68]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2220FC002C, offsetMsgId=3B6E8A9100002A9F00000000000109EF, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=103]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222129002D, offsetMsgId=3B6E8A9100002A9F0000000000010AB2, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=103]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22214C002E, offsetMsgId=3B6E8A9100002A9F0000000000010B75, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=69]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222174002F, offsetMsgId=3B6E8A9100002A9F0000000000010C38, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=69]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2221A60030, offsetMsgId=3B6E8A9100002A9F0000000000010CFB, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=104]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2221CE0031, offsetMsgId=3B6E8A9100002A9F0000000000010DBE, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=104]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2221F60032, offsetMsgId=3B6E8A9100002A9F0000000000010E81, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=105]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22221E0033, offsetMsgId=3B6E8A9100002A9F0000000000010F44, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=105]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2222500034, offsetMsgId=3B6E8A9100002A9F0000000000011007, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=70]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2222780035, offsetMsgId=3B6E8A9100002A9F00000000000110CA, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=70]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2222A00036, offsetMsgId=3B6E8A9100002A9F000000000001118D, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=106]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2222C80037, offsetMsgId=3B6E8A9100002A9F0000000000011250, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=106]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2222F00038, offsetMsgId=3B6E8A9100002A9F0000000000011313, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=71]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2223220039, offsetMsgId=3B6E8A9100002A9F00000000000113D6, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=71]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222349003A, offsetMsgId=3B6E8A9100002A9F0000000000011499, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=107]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222372003B, offsetMsgId=3B6E8A9100002A9F000000000001155C, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=107]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22239A003C, offsetMsgId=3B6E8A9100002A9F000000000001161F, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=108]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2223C2003D, offsetMsgId=3B6E8A9100002A9F00000000000116E2, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=108]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2223E9003E, offsetMsgId=3B6E8A9100002A9F00000000000117A5, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=72]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22241C003F, offsetMsgId=3B6E8A9100002A9F0000000000011868, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=72]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2224440040, offsetMsgId=3B6E8A9100002A9F000000000001192B, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=109]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22246C0041, offsetMsgId=3B6E8A9100002A9F00000000000119EE, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=109]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2224940042, offsetMsgId=3B6E8A9100002A9F0000000000011AB1, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=73]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2224C10043, offsetMsgId=3B6E8A9100002A9F0000000000011B74, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=73]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2224EE0044, offsetMsgId=3B6E8A9100002A9F0000000000011C37, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=110]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2225160045, offsetMsgId=3B6E8A9100002A9F0000000000011CFA, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=110]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22253E0046, offsetMsgId=3B6E8A9100002A9F0000000000011DBD, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=111]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2225660047, offsetMsgId=3B6E8A9100002A9F0000000000011E80, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=111]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2225970048, offsetMsgId=3B6E8A9100002A9F0000000000011F43, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=74]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2225C00049, offsetMsgId=3B6E8A9100002A9F0000000000012006, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=74]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2225E8004A, offsetMsgId=3B6E8A9100002A9F00000000000120C9, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=112]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222610004B, offsetMsgId=3B6E8A9100002A9F000000000001218C, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=112]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222637004C, offsetMsgId=3B6E8A9100002A9F000000000001224F, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=75]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22266A004D, offsetMsgId=3B6E8A9100002A9F0000000000012312, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=75]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222692004E, offsetMsgId=3B6E8A9100002A9F00000000000123D5, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=113]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2226BA004F, offsetMsgId=3B6E8A9100002A9F0000000000012498, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=113]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2226E20050, offsetMsgId=3B6E8A9100002A9F000000000001255B, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=114]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2227140051, offsetMsgId=3B6E8A9100002A9F000000000001261E, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=114]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22273C0052, offsetMsgId=3B6E8A9100002A9F00000000000126E1, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=76]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2227640053, offsetMsgId=3B6E8A9100002A9F00000000000127A4, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=76]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22278C0054, offsetMsgId=3B6E8A9100002A9F0000000000012867, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=115]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2227B40055, offsetMsgId=3B6E8A9100002A9F000000000001292A, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=115]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2227E50056, offsetMsgId=3B6E8A9100002A9F00000000000129ED, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=77]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22280E0057, offsetMsgId=3B6E8A9100002A9F0000000000012AB0, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=77]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22283B0058, offsetMsgId=3B6E8A9100002A9F0000000000012B73, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=116]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22285E0059, offsetMsgId=3B6E8A9100002A9F0000000000012C36, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=116]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222886005A, offsetMsgId=3B6E8A9100002A9F0000000000012CF9, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=117]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2228B8005B, offsetMsgId=3B6E8A9100002A9F0000000000012DBC, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=117]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2228E0005C, offsetMsgId=3B6E8A9100002A9F0000000000012E7F, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=78]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222908005D, offsetMsgId=3B6E8A9100002A9F0000000000012F42, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=78]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222930005E, offsetMsgId=3B6E8A9100002A9F0000000000013005, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=118]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222958005F, offsetMsgId=3B6E8A9100002A9F00000000000130C8, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=118]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A22298A0060, offsetMsgId=3B6E8A9100002A9F000000000001318B, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=2], queueOffset=79]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2229B20061, offsetMsgId=3B6E8A9100002A9F000000000001324E, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=3], queueOffset=79]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A2229DA0062, offsetMsgId=3B6E8A9100002A9F0000000000013311, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=0], queueOffset=119]
SendResult [sendStatus=SEND_OK, msgId=C0A80106A3B418B4AAC29A222A020063, offsetMsgId=3B6E8A9100002A9F00000000000133D4, messageQueue=MessageQueue [topic=learn_order_topic, brokerName=broker_learn_im, queueId=1], queueOffset=119]
ConsumeMessageThread_1 0 order --> 0, id = 0
ConsumeMessageThread_1 0 order --> 4, id = 4
ConsumeMessageThread_1 0 order --> 8, id = 8
ConsumeMessageThread_1 0 order --> 10, id = 0
ConsumeMessageThread_1 0 order --> 14, id = 4
ConsumeMessageThread_1 0 order --> 18, id = 8
ConsumeMessageThread_1 0 order --> 20, id = 0
ConsumeMessageThread_1 0 order --> 24, id = 4
ConsumeMessageThread_1 0 order --> 28, id = 8
ConsumeMessageThread_1 0 order --> 30, id = 0
ConsumeMessageThread_1 0 order --> 34, id = 4
ConsumeMessageThread_1 0 order --> 38, id = 8
ConsumeMessageThread_1 0 order --> 40, id = 0
ConsumeMessageThread_1 0 order --> 44, id = 4
ConsumeMessageThread_1 0 order --> 48, id = 8
ConsumeMessageThread_1 0 order --> 50, id = 0
ConsumeMessageThread_1 0 order --> 54, id = 4
ConsumeMessageThread_1 0 order --> 58, id = 8
ConsumeMessageThread_1 0 order --> 60, id = 0
ConsumeMessageThread_1 0 order --> 64, id = 4
ConsumeMessageThread_1 0 order --> 68, id = 8
ConsumeMessageThread_1 0 order --> 70, id = 0
ConsumeMessageThread_1 0 order --> 74, id = 4
ConsumeMessageThread_1 0 order --> 78, id = 8
ConsumeMessageThread_1 0 order --> 80, id = 0
ConsumeMessageThread_1 0 order --> 84, id = 4
ConsumeMessageThread_1 0 order --> 88, id = 8
ConsumeMessageThread_1 0 order --> 90, id = 0
ConsumeMessageThread_1 0 order --> 94, id = 4
ConsumeMessageThread_1 0 order --> 98, id = 8
ConsumeMessageThread_2 1 order --> 1, id = 1
ConsumeMessageThread_2 1 order --> 5, id = 5
ConsumeMessageThread_2 1 order --> 9, id = 9
ConsumeMessageThread_2 1 order --> 11, id = 1
ConsumeMessageThread_2 1 order --> 15, id = 5
ConsumeMessageThread_2 1 order --> 19, id = 9
ConsumeMessageThread_2 1 order --> 21, id = 1
ConsumeMessageThread_2 1 order --> 25, id = 5
ConsumeMessageThread_2 1 order --> 29, id = 9
ConsumeMessageThread_2 1 order --> 31, id = 1
ConsumeMessageThread_2 1 order --> 35, id = 5
ConsumeMessageThread_2 1 order --> 39, id = 9
ConsumeMessageThread_2 1 order --> 41, id = 1
ConsumeMessageThread_2 1 order --> 45, id = 5
ConsumeMessageThread_2 1 order --> 49, id = 9
ConsumeMessageThread_2 1 order --> 51, id = 1
ConsumeMessageThread_2 1 order --> 55, id = 5
ConsumeMessageThread_2 1 order --> 59, id = 9
ConsumeMessageThread_2 1 order --> 61, id = 1
ConsumeMessageThread_2 1 order --> 65, id = 5
ConsumeMessageThread_2 1 order --> 69, id = 9
ConsumeMessageThread_2 1 order --> 71, id = 1
ConsumeMessageThread_2 1 order --> 75, id = 5
ConsumeMessageThread_2 1 order --> 79, id = 9
ConsumeMessageThread_2 1 order --> 81, id = 1
ConsumeMessageThread_2 1 order --> 85, id = 5
ConsumeMessageThread_2 1 order --> 89, id = 9
ConsumeMessageThread_2 1 order --> 91, id = 1
ConsumeMessageThread_2 1 order --> 95, id = 5
ConsumeMessageThread_2 1 order --> 99, id = 9
ConsumeMessageThread_3 2 order --> 2, id = 2
ConsumeMessageThread_3 2 order --> 6, id = 6
ConsumeMessageThread_3 2 order --> 12, id = 2
ConsumeMessageThread_3 2 order --> 16, id = 6
ConsumeMessageThread_3 2 order --> 22, id = 2
ConsumeMessageThread_3 2 order --> 26, id = 6
ConsumeMessageThread_3 2 order --> 32, id = 2
ConsumeMessageThread_3 2 order --> 36, id = 6
ConsumeMessageThread_3 2 order --> 42, id = 2
ConsumeMessageThread_3 2 order --> 46, id = 6
ConsumeMessageThread_3 2 order --> 52, id = 2
ConsumeMessageThread_3 2 order --> 56, id = 6
ConsumeMessageThread_3 2 order --> 62, id = 2
ConsumeMessageThread_3 2 order --> 66, id = 6
ConsumeMessageThread_3 2 order --> 72, id = 2
ConsumeMessageThread_3 2 order --> 76, id = 6
ConsumeMessageThread_3 2 order --> 82, id = 2
ConsumeMessageThread_3 2 order --> 86, id = 6
ConsumeMessageThread_3 2 order --> 92, id = 2
ConsumeMessageThread_3 2 order --> 96, id = 6
ConsumeMessageThread_4 3 order --> 3, id = 3
ConsumeMessageThread_4 3 order --> 7, id = 7
ConsumeMessageThread_4 3 order --> 13, id = 3
ConsumeMessageThread_4 3 order --> 17, id = 7
ConsumeMessageThread_4 3 order --> 23, id = 3
ConsumeMessageThread_4 3 order --> 27, id = 7
ConsumeMessageThread_4 3 order --> 33, id = 3
ConsumeMessageThread_4 3 order --> 37, id = 7
ConsumeMessageThread_4 3 order --> 43, id = 3
ConsumeMessageThread_4 3 order --> 47, id = 7
ConsumeMessageThread_4 3 order --> 53, id = 3
ConsumeMessageThread_4 3 order --> 57, id = 7
ConsumeMessageThread_4 3 order --> 63, id = 3
ConsumeMessageThread_4 3 order --> 67, id = 7
ConsumeMessageThread_4 3 order --> 73, id = 3
ConsumeMessageThread_4 3 order --> 77, id = 7
ConsumeMessageThread_4 3 order --> 83, id = 3
ConsumeMessageThread_4 3 order --> 87, id = 7
ConsumeMessageThread_4 3 order --> 93, id = 3
ConsumeMessageThread_4 3 order --> 97, id = 7