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

org.hyperledger.fabric.shim.ChaincodeServer Maven / Gradle / Ivy

There is a newer version: 2.5.3
Show newest version
/*
 * Copyright 2020 IBM All Rights Reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package org.hyperledger.fabric.shim;

import java.io.IOException;

/**
 * External chaincode server.
 */
public interface ChaincodeServer {

    /**
     * run external chaincode server.
     *
     * @throws IOException problem while start grpc server
     * @throws InterruptedException thrown when block and awaiting shutdown gprc server
     */
    void start() throws IOException, InterruptedException;

    /**
     * shutdown now grpc server.
     */
    void stop();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy