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

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

package com.aliyun.openservices.ons.api.impl.rocketmq;

import com.aliyun.openservices.shade.com.aliyun.openservices.shade.com.alibaba.rocketmq.remoting.RPCHook;
import com.aliyun.openservices.shade.com.aliyun.openservices.shade.com.alibaba.rocketmq.remoting.protocol.RemotingCommand;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;

/**
 * @author MQDevelopers
 */
public abstract class AbstractRPCHook implements RPCHook {
    protected SortedMap parseRequestContent(RemotingCommand request) {
        request.makeCustomHeaderToNet();
        Map extFields = request.getExtFields();
        // Sort property
        return new TreeMap(extFields);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy