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