-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee8efe5
commit 695185d
Showing
6 changed files
with
91 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
rocketmq-client/src/main/java/com/alibaba/rocketmq/client/impl/ClientRemotingProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* | ||
*/ | ||
package com.alibaba.rocketmq.client.impl; | ||
|
||
import io.netty.channel.ChannelHandlerContext; | ||
|
||
import org.slf4j.Logger; | ||
|
||
import com.alibaba.rocketmq.client.impl.factory.MQClientFactory; | ||
import com.alibaba.rocketmq.remoting.exception.RemotingCommandException; | ||
import com.alibaba.rocketmq.remoting.netty.NettyRequestProcessor; | ||
import com.alibaba.rocketmq.remoting.protocol.RemotingCommand; | ||
|
||
|
||
/** | ||
* Client接收Broker的回调操作,例如事务回调,或者其他管理类命令回调 | ||
* | ||
* @author [email protected] [email protected] | ||
*/ | ||
public class ClientRemotingProcessor implements NettyRequestProcessor { | ||
private final Logger log; | ||
private final MQClientFactory mqClientFactory; | ||
|
||
|
||
public ClientRemotingProcessor(final MQClientFactory mqClientFactory, final Logger log) { | ||
this.log = log; | ||
this.mqClientFactory = mqClientFactory; | ||
} | ||
|
||
|
||
@Override | ||
public RemotingCommand processRequest(ChannelHandlerContext ctx, RemotingCommand request) | ||
throws RemotingCommandException { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters