Class GRpcServerProperties


  • @ConfigurationProperties("grpc")
    public class GRpcServerProperties
    extends java.lang.Object
    Created by alexf on 26-Jan-16.
    • Constructor Detail

      • GRpcServerProperties

        public GRpcServerProperties()
    • Method Detail

      • getRunningPort

        public java.lang.Integer getRunningPort()
      • init

        @PostConstruct
        public void init()
      • getPort

        public java.lang.Integer getPort()
        gRPC server port
      • getStartUpPhase

        public int getStartUpPhase()
      • isEnabled

        public boolean isEnabled()
        Enables the embedded grpc server.
      • getInProcessServerName

        public java.lang.String getInProcessServerName()
        In process server name. If the value is not empty, the embedded in-process server will be created and started.
      • isEnableReflection

        public boolean isEnableReflection()
        Enables server reflection using ProtoReflectionService. Available only from gRPC 1.3 or higher.
      • getShutdownGrace

        public int getShutdownGrace()
        Number of seconds to wait for preexisting calls to finish before shutting down. A negative value is equivalent to an infinite grace period
      • setPort

        public void setPort​(java.lang.Integer port)
        gRPC server port
      • setStartUpPhase

        public void setStartUpPhase​(int startUpPhase)
      • setEnabled

        public void setEnabled​(boolean enabled)
        Enables the embedded grpc server.
      • setInProcessServerName

        public void setInProcessServerName​(java.lang.String inProcessServerName)
        In process server name. If the value is not empty, the embedded in-process server will be created and started.
      • setEnableReflection

        public void setEnableReflection​(boolean enableReflection)
        Enables server reflection using ProtoReflectionService. Available only from gRPC 1.3 or higher.
      • setShutdownGrace

        public void setShutdownGrace​(int shutdownGrace)
        Number of seconds to wait for preexisting calls to finish before shutting down. A negative value is equivalent to an infinite grace period