Java Code Examples for org.apache.rocketmq.store.MessageExtBrokerInner#setQueueOffset()
The following examples show how to use
org.apache.rocketmq.store.MessageExtBrokerInner#setQueueOffset() .
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: TransactionalMessageServiceImplTest.java From rocketmq-4.3.0 with Apache License 2.0 | 5 votes |
private MessageExtBrokerInner createMessageBrokerInner(long queueOffset, String topic, String body) { MessageExtBrokerInner inner = new MessageExtBrokerInner(); inner.setBornTimestamp(System.currentTimeMillis() - 80000); inner.setTransactionId("123456123"); inner.setTopic(topic); inner.setQueueOffset(queueOffset); inner.setBody(body.getBytes()); inner.setMsgId("123456123"); inner.setQueueId(0); inner.setTopic("hello"); return inner; }
Example 2
Source File: TransactionalMessageServiceImplTest.java From rocketmq-read with Apache License 2.0 | 5 votes |
private MessageExtBrokerInner createMessageBrokerInner(long queueOffset, String topic, String body) { MessageExtBrokerInner inner = new MessageExtBrokerInner(); inner.setBornTimestamp(System.currentTimeMillis() - 80000); inner.setTransactionId("123456123"); inner.setTopic(topic); inner.setQueueOffset(queueOffset); inner.setBody(body.getBytes()); inner.setMsgId("123456123"); inner.setQueueId(0); inner.setTopic("hello"); return inner; }
Example 3
Source File: TransactionalMessageServiceImplTest.java From rocketmq with Apache License 2.0 | 5 votes |
private MessageExtBrokerInner createMessageBrokerInner(long queueOffset, String topic, String body) { MessageExtBrokerInner inner = new MessageExtBrokerInner(); inner.setBornTimestamp(System.currentTimeMillis() - 80000); inner.setTransactionId("123456123"); inner.setTopic(topic); inner.setQueueOffset(queueOffset); inner.setBody(body.getBytes()); inner.setMsgId("123456123"); inner.setQueueId(0); inner.setTopic("hello"); return inner; }