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

com.hyf.hotrefresh.remoting.rpc.payload.RpcHeartbeatResponse Maven / Gradle / Ivy

package com.hyf.hotrefresh.remoting.rpc.payload;

import com.hyf.hotrefresh.remoting.rpc.RpcMessage;
import com.hyf.hotrefresh.remoting.rpc.enums.RpcMessageCodec;
import com.hyf.hotrefresh.remoting.rpc.enums.RpcMessageEncoding;
import com.hyf.hotrefresh.remoting.rpc.enums.RpcMessageType;

import java.nio.ByteBuffer;

/**
 * TODO 单例
 *
 * @author baB_hyf
 * @date 2022/05/15
 */
public class RpcHeartbeatResponse implements RpcMessage {

    @Override
    public ByteBuffer encode(RpcMessageEncoding encoding, RpcMessageCodec codec) {
        return ByteBuffer.allocate(0);
    }

    @Override
    public void decode(ByteBuffer buf, RpcMessageEncoding encoding, RpcMessageCodec codec) {

    }

    @Override
    public byte getMessageCode() {
        return RpcMessageType.RESPONSE_HEARTBEAT;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy