use of com.alipay.remoting.rpc.RpcServer in project mmqtt by MrHKing.
the class RpcService method init.
@PostConstruct
public void init() {
rpcServer = new RpcServer(this.memberManager.getSelf().getPort() + 10);
rpcServer.registerUserProcessor(new PublishRequestProcessor(this.memberManager.getSelf(), subscribeStoreService, sessionStoreService, dupPublishMessageStoreService));
rpcServer.registerUserProcessor(new RejectClientProcessor(sessionStoreService));
rpcServer.startup();
}
use of com.alipay.remoting.rpc.RpcServer in project sofa-rpc by sofastack.
the class BoltServer method initRemotingServer.
protected RemotingServer initRemotingServer() {
// 绑定到端口
RemotingServer remotingServer = new RpcServer(serverConfig.getBoundHost(), serverConfig.getPort());
remotingServer.registerUserProcessor(boltServerProcessor);
return remotingServer;
}
Aggregations