cn.hyperchain.sdk.service.SqlService 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.service;
import cn.hyperchain.sdk.request.Request;
import cn.hyperchain.sdk.response.ReceiptResponse;
import cn.hyperchain.sdk.response.TxHashResponse;
import cn.hyperchain.sdk.response.TxHashesResponse;
import cn.hyperchain.sdk.transaction.Transaction;
public interface SqlService {
/**
* send sqltx.
*
* @param transaction transaction to be send
* @param nodeIds specific ids
* @return {@link Request} of {@link TxHashesResponse}
*/
Request invoke(Transaction transaction, int... nodeIds);
Request grpcInvokeReturnReceipt(Transaction transaction, int... nodeIds);
/**
* maintain kvsql database life cycle.
*
* @param transaction transaction to be send
* @param nodeIds specific ids
* @return {@link Request} of {@link TxHashesResponse}
*/
Request maintain(Transaction transaction, int... nodeIds);
Request grpcMaintainReturnReceipt(Transaction transaction, int... nodeIds);
/**
* create a kvsql database.
*
* @param transaction transaction to be send
* @param nodeIds specific ids
* @return {@link Request} of {@link TxHashesResponse}
*/
Request create(Transaction transaction, int... nodeIds);
Request grpcCreateReturnReceipt(Transaction transaction, int... nodeIds);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy