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

cn.hyperchain.sdk.service.SqlService Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
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