Package | Description |
---|---|
com.aliyun.openservices.ons.api | |
com.aliyun.openservices.ons.api.bean |
Modifier and Type | Method and Description |
---|---|
OrderProducer |
ONSFactoryAPI.createOrderProducer(Properties properties)
根据自定义的属性创建一个发送顺序消息的
OrderProducer 实例,具体支持的属性详见PropertyKeyConst |
static OrderProducer |
ONSFactory.createOrderProducer(Properties properties)
创建顺序Producer
properties 应该至少包含以下几项配置内容:
PropertyKeyConst.ProducerId
PropertyKeyConst.AccessKey
PropertyKeyConst.SecretKey
PropertyKeyConst.ONSAddr
以下为可选配置项:
PropertyKeyConst.NAMESRV_ADDR
PropertyKeyConst.OnsChannel
PropertyKeyConst.SendMsgTimeoutMillis
|
Modifier and Type | Class and Description |
---|---|
class |
OrderProducerBean
OrderProducerBean 用于将OrderProducer 集成至Spring Bean中 |
Copyright © 2012–2020. All rights reserved.