public class NativeOnsProductor extends Object implements com.aliyun.openservices.ons.api.Producer
| Constructor and Description |
|---|
NativeOnsProductor(com.ohaotian.plugin.cache.CacheService cacheService)
适用场景: 调用方式: 业务逻辑说明 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isClosed() |
boolean |
isStarted() |
com.aliyun.openservices.ons.api.SendResult |
send(com.aliyun.openservices.ons.api.Message message) |
void |
sendAsync(com.aliyun.openservices.ons.api.Message message,
com.aliyun.openservices.ons.api.SendCallback sendCallback) |
void |
sendOneway(com.aliyun.openservices.ons.api.Message message) |
void |
shutdown() |
void |
start() |
public NativeOnsProductor(com.ohaotian.plugin.cache.CacheService cacheService)
cacheService - public boolean isStarted()
isStarted in interface com.aliyun.openservices.ons.api.Adminpublic boolean isClosed()
isClosed in interface com.aliyun.openservices.ons.api.Adminpublic void start()
start in interface com.aliyun.openservices.ons.api.Producerpublic void shutdown()
shutdown in interface com.aliyun.openservices.ons.api.Producerpublic com.aliyun.openservices.ons.api.SendResult send(com.aliyun.openservices.ons.api.Message message)
send in interface com.aliyun.openservices.ons.api.Producerpublic void sendOneway(com.aliyun.openservices.ons.api.Message message)
sendOneway in interface com.aliyun.openservices.ons.api.Producerpublic void sendAsync(com.aliyun.openservices.ons.api.Message message,
com.aliyun.openservices.ons.api.SendCallback sendCallback)
sendAsync in interface com.aliyun.openservices.ons.api.ProducerCopyright © 2018. All rights reserved.