Class GrpcServerProperties

java.lang.Object
org.springframework.boot.grpc.server.autoconfigure.GrpcServerProperties

@ConfigurationProperties(prefix="spring.grpc.server") public class GrpcServerProperties extends Object
  • Field Details

    • ANY_IP_ADDRESS

      public static final String ANY_IP_ADDRESS
      Server should listen to any IPv4 and IPv6 address.
      See Also:
  • Constructor Details

    • GrpcServerProperties

      public GrpcServerProperties()
  • Method Details

    • getAddress

      public @Nullable String getAddress()
    • setAddress

      public void setAddress(@Nullable String address)
    • determineAddress

      public String determineAddress()
      Returns the configured address or an address created from the configured host and port if no address has been set.
      Returns:
      the address to bind to
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • getMaxInboundMessageSize

      public org.springframework.util.unit.DataSize getMaxInboundMessageSize()
    • setMaxInboundMessageSize

      public void setMaxInboundMessageSize(org.springframework.util.unit.DataSize maxInboundMessageSize)
    • getMaxInboundMetadataSize

      public org.springframework.util.unit.DataSize getMaxInboundMetadataSize()
    • setMaxInboundMetadataSize

      public void setMaxInboundMetadataSize(org.springframework.util.unit.DataSize maxInboundMetadataSize)
    • getShutdownGracePeriod

      public Duration getShutdownGracePeriod()
    • setShutdownGracePeriod

      public void setShutdownGracePeriod(Duration shutdownGracePeriod)
    • getHealth

      public GrpcServerProperties.Health getHealth()
    • getInprocess

      public GrpcServerProperties.Inprocess getInprocess()
    • getKeepAlive

      public GrpcServerProperties.KeepAlive getKeepAlive()
    • getSsl

      public GrpcServerProperties.Ssl getSsl()