类 ONSConsumer

  • 所有已实现的接口:
    xin.manong.weapon.base.rebuild.Rebuildable

    public class ONSConsumer
    extends Object
    implements xin.manong.weapon.base.rebuild.Rebuildable
    ONS消息消费器
    作者:
    frankcl
    • 字段详细资料

      • rebuildListeners

        protected List<xin.manong.weapon.base.rebuild.RebuildListener> rebuildListeners
      • consumer

        protected com.aliyun.openservices.ons.api.Consumer consumer
    • 方法详细资料

      • 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 - 重建监听器