接口 ResponseWriter


public interface ResponseWriter
发送响应消息的写入对象。
     1) 由于LongConnectionMeta对象序列化存储到Redis后,反序列化是不知道具体子类的,
     因此只能通过该对象实现具体发送过程。
 
作者:
时克英
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String
     
  • 方法概要

    修饰符和类型
    方法
    说明
    write(String type, Response<?> response, String connectionHost, String channelId)
    写入数据到具体通道中
  • 字段详细资料

  • 方法详细资料

    • write

      Object write(String type, Response<?> response, String connectionHost, String channelId)
      写入数据到具体通道中
      参数:
      type - 类型,见常量:TYPE_MQ
      response - 响应数据
      connectionHost - 当前连接元数据对应的主机信息
      channelId - 通道ID
      返回: