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

org.hyperledger.fabric.shim.GrpcServer 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;

/**
 * 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 - 2024 Weber Informatics LLC | Privacy Policy