Class 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.SmartLifecycle
    Hosts embedded gRPC server.
    • Field Summary

      • Fields inherited from interface org.springframework.context.SmartLifecycle

        DEFAULT_PHASE
    • 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
      int getPhase()  
      boolean isRunning()  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.context.SmartLifecycle

        isAutoStartup, stop
    • Constructor Detail

      • GRpcServerRunner

        public GRpcServerRunner​(java.util.function.Consumer<io.grpc.ServerBuilder<?>> configurator,
                                io.grpc.ServerBuilder<?> serverBuilder)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.springframework.context.Lifecycle
      • stop

        public void stop()
        Specified by:
        stop in interface org.springframework.context.Lifecycle
      • getPhase

        public int getPhase()
        Specified by:
        getPhase in interface org.springframework.context.Phased
        Specified by:
        getPhase in interface org.springframework.context.SmartLifecycle
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface org.springframework.context.Lifecycle