org.hyperledger.fabric.shim.ChaincodeServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-chaincode-shim Show documentation
Show all versions of fabric-chaincode-shim Show documentation
Hyperledger Fabric Java Chaincode Shim
/*
* 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();
}