cn.hyperchain.sdk.request.Request Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of litesdk Show documentation
Show all versions of litesdk Show documentation
A Java client tool for Hyperchain
package cn.hyperchain.sdk.request;
import cn.hyperchain.sdk.common.utils.Async;
import cn.hyperchain.sdk.exception.RequestException;
import cn.hyperchain.sdk.provider.ProviderManager;
import cn.hyperchain.sdk.response.Response;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.annotations.Expose;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
/**
* call param, will return a {@link Response}
.
*
* @author tomkk
* @version 0.0.1
*/
public abstract class Request {
protected ProviderManager providerManager;
protected Class clazz;
protected int[] nodeIds;
private Gson gson;
// rpc request
@Expose
private int id = 1;
@Expose
private String jsonrpc = "2.0";
@Expose
private String namespace;
@Expose
private String method;
@Expose
private List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy