类 ONSConsumer
- java.lang.Object
-
- xin.manong.weapon.aliyun.ons.ONSConsumer
-
- 所有已实现的接口:
xin.manong.weapon.base.rebuild.Rebuildable
public class ONSConsumer extends Object implements xin.manong.weapon.base.rebuild.Rebuildable
ONS消息消费器- 作者:
- frankcl
-
-
字段概要
字段 修饰符和类型 字段 说明 protected ONSConsumerConfigconfigprotected com.aliyun.openservices.ons.api.Consumerconsumerprotected List<xin.manong.weapon.base.rebuild.RebuildListener>rebuildListeners
-
构造器概要
构造器 构造器 说明 ONSConsumer(ONSConsumerConfig config)
-
-
-
字段详细资料
-
config
protected ONSConsumerConfig config
-
rebuildListeners
protected List<xin.manong.weapon.base.rebuild.RebuildListener> rebuildListeners
-
consumer
protected com.aliyun.openservices.ons.api.Consumer consumer
-
-
构造器详细资料
-
ONSConsumer
public ONSConsumer(ONSConsumerConfig config)
-
-
方法详细资料
-
rebuild
public void rebuild()
- 指定者:
rebuild在接口中xin.manong.weapon.base.rebuild.Rebuildable
-
start
public boolean start()
启动消息消费器- 返回:
- 启动成功返回true,否则返回false
-
stop
public void stop()
停止消息消费器
-
addRebuildListener
public void addRebuildListener(xin.manong.weapon.base.rebuild.RebuildListener listener)
添加重建监听器- 参数:
listener- 重建监听器
-
-