Package org.lognet.springboot.grpc
Class GRpcServerRunner
- java.lang.Object
-
- org.lognet.springboot.grpc.GRpcServerRunner
-
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class GRpcServerRunner extends java.lang.Object implements org.springframework.context.SmartLifecycleHosts embedded gRPC server.
-
-
Constructor Summary
Constructors Constructor Description GRpcServerRunner(java.util.function.Consumer<io.grpc.ServerBuilder<?>> configurator, io.grpc.ServerBuilder<?> serverBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPhase()booleanisRunning()voidstart()voidstop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()
- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()
- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
isRunning
public boolean isRunning()
- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
-