com.hyf.hotrefresh.remoting.rpc.handler.RpcMessageResponseHandler Maven / Gradle / Ivy
package com.hyf.hotrefresh.remoting.rpc.handler;
import com.hyf.hotrefresh.remoting.rpc.RpcMessage;
import com.hyf.hotrefresh.remoting.rpc.RpcMessageHandler;
/**
* @author baB_hyf
* @date 2022/05/15
*/
public abstract class RpcMessageResponseHandler implements RpcMessageHandler {
@Override
public RpcMessage handle(REQ response) throws Exception {
handleResponse(response);
return null;
}
protected abstract void handleResponse(REQ response) throws Exception;
}