
org.hyperledger.fabric.shim.GrpcServer 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
The newest version!
/*
* Copyright 2020 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.shim;
import java.io.IOException;
/** Common interface for grpc server. */
public interface GrpcServer {
/**
* start grpc server.
*
* @throws IOException problem while start grpc server
*/
void start() throws IOException;
/** shutdown now grpc server. */
void stop();
/**
* Await termination on the main thread since the grpc library uses daemon threads.
*
* @throws InterruptedException
*/
void blockUntilShutdown() throws InterruptedException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy