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 RpcServer
builder()
static RpcServer
builder(GrpcServerOption option)
org.hertsstack.core.context.HertsType
getHertCoreType()
Gert herts type of serverio.grpc.Server
getServer()
Get grpc Servervoid
start()
Start Herts rpc servervoid
stop()
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:HertsRpcServerEngine
Start Herts rpc server- Specified by:
start
in interfaceHertsRpcServerEngine
-
stop
public void stop()
Description copied from interface:HertsRpcServerEngine
diStop Herts rpc server- Specified by:
stop
in interfaceHertsRpcServerEngine
-
getServer
public io.grpc.Server getServer()
Description copied from interface:HertsRpcServerEngine
Get grpc Server- Specified by:
getServer
in interfaceHertsRpcServerEngine
- Returns:
- gRPC server
-
getHertCoreType
public org.hertsstack.core.context.HertsType getHertCoreType()
Description copied from interface:HertsRpcServerEngine
Gert herts type of server- Specified by:
getHertCoreType
in interfaceHertsRpcServerEngine
- Returns:
- HertsType
-
-