Package | Description |
---|---|
com.aliyun.openservices.ons.api | |
com.aliyun.openservices.ons.api.batch |
Modifier and Type | Method and Description |
---|---|
Action |
MessageListener.consume(Message message,
ConsumeContext context)
消费消息接口,由应用来实现
网络抖动等不稳定的情形可能会带来消息重复,对重复消息敏感的业务可对消息做幂等处理 |
Modifier and Type | Method and Description |
---|---|
Action |
BatchMessageListener.consume(List<Message> messages,
ConsumeContext context)
批量消费消息接口,由应用来实现
需要注意网络抖动等不稳定的情形可能会带来消息重复,对重复消息敏感的业务可对消息做幂等处理 |
Copyright © 2012–2020. All rights reserved.