Package org.hertsstack.rpc
Class HertsRpcServerEngineBuilder
- java.lang.Object
-
- org.hertsstack.rpc.HertsRpcServerEngineBuilder
-
- All Implemented Interfaces:
HertsRpcServerEngine
public class HertsRpcServerEngineBuilder extends java.lang.Object implements HertsRpcServerEngine
Herts server engine builder implementation
-
-
Constructor Summary
Constructors Constructor Description HertsRpcServerEngineBuilder(ServerBuildInfo serverBuildInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RpcServerbuilder()static RpcServerbuilder(GrpcServerOption option)org.hertsstack.core.context.HertsTypegetHertCoreType()Gert herts type of serverio.grpc.ServergetServer()Get grpc Servervoidstart()Start Herts rpc servervoidstop()diStop Herts rpc server
-
-
-
Constructor Detail
-
HertsRpcServerEngineBuilder
public HertsRpcServerEngineBuilder(ServerBuildInfo serverBuildInfo)
-
-
Method Detail
-
builder
public static RpcServer builder()
-
builder
public static RpcServer builder(GrpcServerOption option)
-
start
public void start()
Description copied from interface:HertsRpcServerEngineStart Herts rpc server- Specified by:
startin interfaceHertsRpcServerEngine
-
stop
public void stop()
Description copied from interface:HertsRpcServerEnginediStop Herts rpc server- Specified by:
stopin interfaceHertsRpcServerEngine
-
getServer
public io.grpc.Server getServer()
Description copied from interface:HertsRpcServerEngineGet grpc Server- Specified by:
getServerin interfaceHertsRpcServerEngine- Returns:
- gRPC server
-
getHertCoreType
public org.hertsstack.core.context.HertsType getHertCoreType()
Description copied from interface:HertsRpcServerEngineGert herts type of server- Specified by:
getHertCoreTypein interfaceHertsRpcServerEngine- Returns:
- HertsType
-
-