类 EventBus

java.lang.Object
net.jlxxw.wechat.event.component.EventBus

public class EventBus extends Object
事件总线
作者:
chunyang.leng
  • 构造器详细资料

  • 方法详细资料

    • init

      public void init()
    • dispatcher

      public String dispatcher(byte[] bytes, String uri)
      不使用线程池,消费处理数据
      参数:
      bytes - 数据
      uri - 请求 uri
    • dispatcher

      public void dispatcher(byte[] bytes, String uri, Consumer<String> responseConsumer)
      消费处理数据,等待时间
      参数:
      bytes - 数据
      uri - 请求 uri
      responseConsumer - 应答信息消费者