Package org.hyperledger.fabric.shim
Interface GrpcServer
-
- All Known Implementing Classes:
NettyGrpcServer
public interface GrpcServer
Common interface for grpc server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
blockUntilShutdown()
Await termination on the main thread since the grpc library uses daemon threads.void
start()
start grpc server.void
stop()
shutdown now grpc server.
-
-
-
Method Detail
-
start
void start() throws java.io.IOException
start grpc server.- Throws:
java.io.IOException
- problem while start grpc server
-
stop
void stop()
shutdown now grpc server.
-
blockUntilShutdown
void blockUntilShutdown() throws java.lang.InterruptedException
Await termination on the main thread since the grpc library uses daemon threads.- Throws:
java.lang.InterruptedException
-
-