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

com.hyf.hotrefresh.remoting.rpc.DefaultRpcMessageHandlerRegistrationInfo Maven / Gradle / Ivy

package com.hyf.hotrefresh.remoting.rpc;

import com.hyf.hotrefresh.remoting.rpc.enums.HandleSide;

/**
 * @author baB_hyf
 * @date 2022/05/18
 */
public class DefaultRpcMessageHandlerRegistrationInfo implements RpcMessageHandlerRegistrationInfo {

    private byte                                                          handleMessageCode;
    private HandleSide                                                    handleSide;
    private RpcMessageHandler handler;

    public DefaultRpcMessageHandlerRegistrationInfo(byte handleMessageCode, HandleSide handleSide, RpcMessageHandler handler) {
        this.handleMessageCode = handleMessageCode;
        this.handleSide = handleSide;
        this.handler = handler;
    }

    @Override
    public byte handleMessageCode() {
        return handleMessageCode;
    }

    @Override
    public HandleSide handleSide() {
        return handleSide;
    }

    @Override
    public RpcMessageHandler rpcMessageHandler() {
        return handler;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy