接口 com.alibaba.rocketmq.remoting.CommandCustomHeader
的使用

使用 CommandCustomHeader 的软件包
com.alibaba.rocketmq.remoting.protocol   
 

com.alibaba.rocketmq.remoting.protocolCommandCustomHeader 的使用
 

返回 CommandCustomHeadercom.alibaba.rocketmq.remoting.protocol 中的方法
 CommandCustomHeader RemotingCommand.decodeCommandCustomHeader(Class<? extends CommandCustomHeader> classHeader)
           
 CommandCustomHeader RemotingCommand.readCustomHeader()
           
 

参数类型为 CommandCustomHeadercom.alibaba.rocketmq.remoting.protocol 中的方法
static RemotingCommand RemotingCommand.createRequestCommand(int code, CommandCustomHeader customHeader)
           
 void RemotingCommand.writeCustomHeader(CommandCustomHeader customHeader)
           
 

类型变量类型为 CommandCustomHeadercom.alibaba.rocketmq.remoting.protocol 中的方法参数
static RemotingCommand RemotingCommand.createResponseCommand(Class<? extends CommandCustomHeader> classHeader)
           
static RemotingCommand RemotingCommand.createResponseCommand(int code, String remark, Class<? extends CommandCustomHeader> classHeader)
          只有通信层内部会调用,业务不会调用
 CommandCustomHeader RemotingCommand.decodeCommandCustomHeader(Class<? extends CommandCustomHeader> classHeader)
           
 



Copyright © 2012-2015. All Rights Reserved.