com.aliyun.openservices.ons.api.impl.rocketmq.OnsClientRPCHook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gw-boot-starter-aliyun-ons Show documentation
Show all versions of gw-boot-starter-aliyun-ons Show documentation
A Java Utils Libraray By Geewit
package com.aliyun.openservices.ons.api.impl.rocketmq;
import com.aliyun.openservices.shade.com.alibaba.rocketmq.remoting.protocol.RemotingCommand;
import com.aliyun.openservices.ons.api.impl.MQClientInfo;
import com.aliyun.openservices.ons.api.impl.authority.SessionCredentials;
public class OnsClientRPCHook extends ClientRPCHook {
public OnsClientRPCHook(SessionCredentials sessionCredentials) {
super(sessionCredentials);
}
@Override
public void doBeforeRequest(String remoteAddr, RemotingCommand request) {
super.doBeforeRequest(remoteAddr, request);
request.setVersion(MQClientInfo.versionCode);
}
@Override
public void doAfterResponse(String remoteAddr, RemotingCommand request, RemotingCommand response) {
super.doAfterResponse(remoteAddr, request, response);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy