
com.xxl.rpc.remoting.net.Client Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xxl-rpc-core Show documentation
Show all versions of xxl-rpc-core Show documentation
A high performance, distributed RPC framework.
package com.xxl.rpc.remoting.net;
import com.xxl.rpc.remoting.invoker.reference.XxlRpcReferenceBean;
import com.xxl.rpc.remoting.net.params.XxlRpcRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* i client
* @author xuxueli 2015-11-24 22:18:10
*/
public abstract class Client {
protected static final Logger logger = LoggerFactory.getLogger(Client.class);
// ---------------------- init ----------------------
protected volatile XxlRpcReferenceBean xxlRpcReferenceBean;
public void init(XxlRpcReferenceBean xxlRpcReferenceBean) {
this.xxlRpcReferenceBean = xxlRpcReferenceBean;
}
// ---------------------- send ----------------------
/**
* async send, bind requestId and future-response
*
* @param address
* @param xxlRpcRequest
* @return
* @throws Exception
*/
public abstract void asyncSend(String address, XxlRpcRequest xxlRpcRequest) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy