All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.ons.api.impl.rocketmq.OnsClientRPCHook Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
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