You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
390 B

  1. package ziface
  2. /*
  3. 消息管理抽象层
  4. */
  5. type IMsgHandle interface {
  6. DoMsgHandler(request IRequest) //马上以非阻塞方式处理消息
  7. AddRouter(msgId uint32, router IRouter) //为消息添加具体的处理逻辑
  8. StartWorkerPool() //启动worker工作池
  9. SendMsgToTaskQueue(request IRequest) //将消息交给TaskQueue,由worker进行处理
  10. }