| 程序包 | 说明 |
|---|---|
| com.aliyun.mq.http | |
| com.aliyun.mq.http.model.action | |
| com.aliyun.mq.http.model.serialize |
| 限定符和类型 | 方法和说明 |
|---|---|
AsyncResult<List<Message>> |
MQTransProducer.asyncConsumeHalfMessage(int num,
int pollingSecond,
AsyncCallback<List<Message>> callback)
consume half message to check transaction status, three choice:
MQTransProducer.commit(String) , MQTransProducer.rollback(String)
or do nothing (will get the message again after nextConsumeTime). |
AsyncResult<List<Message>> |
MQConsumer.asyncConsumeMessage(int num,
int pollingSecond,
AsyncCallback<List<Message>> callback)
async consume message from topic.
|
List<Message> |
MQTransProducer.consumeHalfMessage(int num,
int pollingSecond)
consume half message to check transaction status, three choice:
MQTransProducer.commit(String) , MQTransProducer.rollback(String)
or do nothing (after 10s will get the message again). |
List<Message> |
MQConsumer.consumeMessage(int num,
int pollingSecond)
sync consume message from topic.
|
List<Message> |
MQConsumer.consumeMessageOrderly(int num,
int pollingSecond)
sync consume message from topic orderly.
|
| 限定符和类型 | 方法和说明 |
|---|---|
AsyncResult<List<Message>> |
MQTransProducer.asyncConsumeHalfMessage(int num,
int pollingSecond,
AsyncCallback<List<Message>> callback)
consume half message to check transaction status, three choice:
MQTransProducer.commit(String) , MQTransProducer.rollback(String)
or do nothing (will get the message again after nextConsumeTime). |
AsyncResult<List<Message>> |
MQConsumer.asyncConsumeMessage(int num,
int pollingSecond,
AsyncCallback<List<Message>> callback)
async consume message from topic.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected com.aliyun.mq.http.common.parser.ResultParser<List<Message>> |
ConsumeMessageAction.buildResultParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Message> |
MessageListDeserializer.deserialize(Document doc) |
List<Message> |
MessageListDeserializer.deserialize(InputStream stream) |
Copyright © 2021. All Rights Reserved.