com.alibaba.rocketmq.client.impl
类 ClientRemotingProcessor

java.lang.Object
  继承者 com.alibaba.rocketmq.client.impl.ClientRemotingProcessor
所有已实现的接口:
NettyRequestProcessor

public class ClientRemotingProcessor
extends Object
implements NettyRequestProcessor

Client接收Broker的回调操作,例如事务回调,或者其他管理类命令回调

从以下版本开始:
2013-7-24
作者:
shijia.wxr

构造方法摘要
ClientRemotingProcessor(MQClientFactory mqClientFactory)
           
 
方法摘要
 RemotingCommand checkTransactionState(io.netty.channel.ChannelHandlerContext ctx, RemotingCommand request)
          Oneway调用,无返回值
 RemotingCommand getConsumeStatus(io.netty.channel.ChannelHandlerContext ctx, RemotingCommand request)
          获取 consumer 消息消费状态。
 RemotingCommand notifyConsumerIdsChanged(io.netty.channel.ChannelHandlerContext ctx, RemotingCommand request)
          Oneway调用,无返回值
 RemotingCommand processRequest(io.netty.channel.ChannelHandlerContext ctx, RemotingCommand request)
           
 RemotingCommand resetOffset(io.netty.channel.ChannelHandlerContext ctx, RemotingCommand request)
          重置 offset, oneWay调用,无返回值。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ClientRemotingProcessor

public ClientRemotingProcessor(MQClientFactory mqClientFactory)
方法详细信息

processRequest

public RemotingCommand processRequest(io.netty.channel.ChannelHandlerContext ctx,
                                      RemotingCommand request)
                               throws RemotingCommandException
指定者:
接口 NettyRequestProcessor 中的 processRequest
抛出:
RemotingCommandException

checkTransactionState

public RemotingCommand checkTransactionState(io.netty.channel.ChannelHandlerContext ctx,
                                             RemotingCommand request)
                                      throws RemotingCommandException
Oneway调用,无返回值

抛出:
RemotingCommandException

notifyConsumerIdsChanged

public RemotingCommand notifyConsumerIdsChanged(io.netty.channel.ChannelHandlerContext ctx,
                                                RemotingCommand request)
                                         throws RemotingCommandException
Oneway调用,无返回值

抛出:
RemotingCommandException

resetOffset

public RemotingCommand resetOffset(io.netty.channel.ChannelHandlerContext ctx,
                                   RemotingCommand request)
                            throws RemotingCommandException
重置 offset, oneWay调用,无返回值。

抛出:
RemotingCommandException

getConsumeStatus

public RemotingCommand getConsumeStatus(io.netty.channel.ChannelHandlerContext ctx,
                                        RemotingCommand request)
                                 throws RemotingCommandException
获取 consumer 消息消费状态。

抛出:
RemotingCommandException


Copyright © 2012-2014. All Rights Reserved.