Class GRpcServerProperties

java.lang.Object
org.lognet.springboot.grpc.autoconfigure.GRpcServerProperties
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

@ConfigurationProperties("grpc") public class GRpcServerProperties extends Object implements org.springframework.beans.factory.InitializingBean
Created by alexf on 26-Jan-16.
  • Field Details

  • Constructor Details

    • GRpcServerProperties

      public GRpcServerProperties()
  • Method Details

    • onServerStarted

      @EventListener public void onServerStarted(GRpcServerInitializedEvent event)
    • getPortOrDefault

      public Integer getPortOrDefault()
    • getRunningPort

      public Integer getRunningPort()
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getPort

      public Integer getPort()
      gRPC server port
    • getSecurity

    • getRecovery

    • getNettyServer

    • getStartUpPhase

      public int getStartUpPhase()
    • isEnabled

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

      public 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(Integer port)
      gRPC server port
    • setSecurity

      public void setSecurity(GRpcServerProperties.SecurityProperties security)
    • setRecovery

      public void setRecovery(GRpcServerProperties.RecoveryProperties recovery)
    • setNettyServer

      public void setNettyServer(GRpcServerProperties.NettyServerProperties nettyServer)
    • setStartUpPhase

      public void setStartUpPhase(int startUpPhase)
    • setEnabled

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

      public void setInProcessServerName(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